Skip to content

Commit 55c6b12

Browse files
fix: fix mini-css-extract-plugin missing default export error (#1749)
Default exports should only be used for CSS modules.
1 parent 859a45d commit 55c6b12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pitcher.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export const pitch = function () {
6868
const beforeLoaders = loaders.slice(cssLoaderIndex + 1)
6969
return genProxyModule(
7070
[...afterLoaders, stylePostLoaderPath, ...beforeLoaders],
71-
context
71+
context,
72+
!! query.module
7273
)
7374
}
7475
}

0 commit comments

Comments
 (0)