Skip to content

Commit f0be605

Browse files
committed
feat(dev): warn when using outdated unstable_dev future flag
1 parent 9aba797 commit f0be605

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

packages/remix-dev/config.ts

+16-5
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export async function readConfig(
489489
if (appConfig.future) {
490490
if ("unstable_cssModules" in appConfig.future) {
491491
logger.warn(
492-
'The "future.unstable_cssModules" config option has been removed',
492+
"The `future.unstable_cssModules` config option has been removed",
493493
{
494494
details: [
495495
"CSS Modules are now enabled automatically.",
@@ -502,7 +502,7 @@ export async function readConfig(
502502

503503
if ("unstable_cssSideEffectImports" in appConfig.future) {
504504
logger.warn(
505-
'The "future.unstable_cssSideEffectImports" config option has been removed',
505+
"The `future.unstable_cssSideEffectImports` config option has been removed",
506506
{
507507
details: [
508508
"CSS side-effect imports are now enabled automatically.",
@@ -515,7 +515,7 @@ export async function readConfig(
515515

516516
if ("unstable_vanillaExtract" in appConfig.future) {
517517
logger.warn(
518-
'The "future.unstable_vanillaExtract" config option has been removed.',
518+
"The `future.unstable_vanillaExtract` config option has been removed.",
519519
{
520520
details: [
521521
"Vanilla Extract is now enabled automatically.",
@@ -528,7 +528,7 @@ export async function readConfig(
528528

529529
if (appConfig.future.unstable_postcss !== undefined) {
530530
logger.warn(
531-
'The "future.unstable_postcss" config option has been deprecated.',
531+
"The `future.unstable_postcss` config option has been deprecated.",
532532
{
533533
details: [
534534
"PostCSS support is now stable.",
@@ -541,7 +541,7 @@ export async function readConfig(
541541

542542
if (appConfig.future.unstable_tailwind !== undefined) {
543543
logger.warn(
544-
'The "future.unstable_tailwind" config option has been deprecated.',
544+
"The `future.unstable_tailwind` config option has been deprecated.",
545545
{
546546
details: [
547547
"Tailwind support is now stable.",
@@ -551,6 +551,17 @@ export async function readConfig(
551551
}
552552
);
553553
}
554+
555+
if ("unstable_dev" in appConfig.future) {
556+
logger.warn("The `future.unstable_dev` config option has been removed", {
557+
details: [
558+
"The v2 dev server is now stable.",
559+
"Use the `future.v2_dev` config option instead.",
560+
"-> https://remix.run/docs/en/main/pages/v2#dev-server",
561+
],
562+
key: "unstable_dev",
563+
});
564+
}
554565
}
555566

556567
let mdx = appConfig.mdx;

0 commit comments

Comments
 (0)