Skip to content

Commit

Permalink
Remove warnings from stabilized css flags (#6905)
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël De Boey <[email protected]>
  • Loading branch information
brophdawg11 and MichaelDeBoey authored Jul 21, 2023
1 parent 22364f4 commit 930c62f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 39 deletions.
9 changes: 9 additions & 0 deletions .changeset/v2-remove-unstable-warnings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@remix-run/dev": patch
---

Remove warnings for stabilized flags:

* `unstable_cssSideEffectImports`
* `unstable_cssModules`
* `unstable_vanillaExtract`
39 changes: 0 additions & 39 deletions packages/remix-dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,45 +515,6 @@ export async function readConfig(
}

if (appConfig.future) {
if ("unstable_cssModules" in appConfig.future) {
logger.warn(
"The `future.unstable_cssModules` config option has been removed",
{
details: [
"CSS Modules are now enabled automatically.",
"You should remove the `unstable_cssModules` option from your Remix config.",
],
key: "unstable_cssModules",
}
);
}

if ("unstable_cssSideEffectImports" in appConfig.future) {
logger.warn(
"The `future.unstable_cssSideEffectImports` config option has been removed",
{
details: [
"CSS side-effect imports are now enabled automatically.",
"You should remove the `unstable_cssSideEffectImports` option from your Remix config",
],
key: "unstable_cssSideEffectImports",
}
);
}

if ("unstable_vanillaExtract" in appConfig.future) {
logger.warn(
"The `future.unstable_vanillaExtract` config option has been removed.",
{
details: [
"Vanilla Extract is now enabled automatically.",
"You should remove the `unstable_vanillaExtract` option from your Remix config",
],
key: "unstable_vanillaExtract",
}
);
}

if (appConfig.future.unstable_postcss !== undefined) {
logger.warn(
"The `future.unstable_postcss` config option has been deprecated.",
Expand Down

0 comments on commit 930c62f

Please sign in to comment.