Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Commit b80e126

Browse files
committed
Ensure that raw-loader outputs CommonJS
Otherwise we prefer ES modules in webpack, but in this case we're just reading the exported value in Node, so we need CommonJS syntax.
1 parent 7a83df8 commit b80e126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/css-customs-loader/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module.exports = async function(content, sourceMap, meta) {
3030

3131
const additionalLoaders = this.loaders.slice(postcssLoaderIndex + 1)
3232
const additionalLoadersRequest = [
33-
rawLoader,
33+
`${rawLoader}?esModule=false`,
3434
...additionalLoaders.map(({ request }) => request),
3535
].join('!')
3636
const request =

0 commit comments

Comments
 (0)