Skip to content

Commit f2cfe30

Browse files
fix: css experiment detection (#1559)
1 parent 1ad3f9f commit f2cfe30

File tree

2 files changed

+90
-113
lines changed

2 files changed

+90
-113
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)