Unverified Commit 429a2847 authored by Jordan Pittman's avatar Jordan Pittman Committed by GitHub

fix: fix mini-css-extract-plugin missing default export error (#1748)

Default exports should only be used for CSS modules.
parent afe8a0d7
......@@ -120,7 +120,9 @@ module.exports.pitch = function (remainingRequest) {
...beforeLoaders
])
// console.log(request)
return `import mod from ${request}; export default mod; export * from ${request}`
return query.module
? `export { default } from ${request}; export * from ${request}`
: `export * from ${request}`
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment