Skip to content

Commit

Permalink
fix: css experiment detection (#1559)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Dec 26, 2023
1 parent 1ad3f9f commit f2cfe30
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 113 deletions.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export default async function loader(content, map, meta) {
this._compiler.options.experiments &&
this._compiler.options.experiments.css &&
this._module &&
this._module.type === "css"
(this._module.type === "css" ||
this._module.type === "css/auto" ||
this._module.type === "css/global" ||
this._module.type === "css/module")
) {
this.emitWarning(
new Error(
Expand Down
Loading

0 comments on commit f2cfe30

Please sign in to comment.