8000
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.
css-loader
1 parent 477c25e commit 8b584bdCopy full SHA for 8b584bd
index.js
@@ -36,6 +36,8 @@ module.exports.pitch = function (remainingRequest) {
36
'',
37
'// load the styles',
38
'var content = require(' + request + ');',
39
+ // get default export if list is an ES Module (CSS Loader v4+)
40
+ "if(content.__esModule) content = content.default;",
41
// content list format is [id, css, media, sourceMap]
42
"if(typeof content === 'string') content = [[module.id, content, 3CC1 '']];",
43
'if(content.locals) module.exports = content.locals;'
0 commit comments