We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06e5d70 commit b983304Copy full SHA for b983304
lib/loaders/pitcher.js
@@ -37,8 +37,7 @@ module.exports.pitch = function (remainingRequest) {
37
...beforeLoaders
38
])
39
// console.log(request)
40
- // use cjs to ensure exports from (vue-)style-loader/css-loader are intact
41
- return `module.exports = require(${request})`
+ return `import mod from ${request}; export default mod; export * from ${request}`
42
}
43
44
@@ -66,5 +65,5 @@ module.exports.pitch = function (remainingRequest) {
66
65
// both that rule and the cloned rule will match, resulting in duplicated
67
// loaders. Therefore it is necessary to perform a dedupe here.
68
const request = genRequest(loaders.map(toLoaderString))
69
70
0 commit comments