Skip to content

Commit e618511

Browse files
fix: css experiment detection
1 parent 1ad3f9f commit e618511

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ export default async function loader(content, map, meta) {
3939
this._compiler.options.experiments &&
4040
this._compiler.options.experiments.css &&
4141
this._module &&
42-
this._module.type === "css"
42+
(this._module.type === "css" ||
43+
this._module.type === "css/auto" ||
44+
this._module.type === "css/global" ||
45+
this._module.type === "css/module")
4346
) {
4447
this.emitWarning(
4548
new Error(

0 commit comments

Comments
 (0)