Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ module.exports = function (content, filename, needMap) {
content: ''
}
}
if (output.styles) {
output.styles.forEach(style => {
// compensate for the fact that HTML-link strings are parsed incorrectly in react-vue-loader
// when the presence of an attribute is used to indicate true, eg:
// <style module>
style.module = !!(style.attrs && style.attrs[':module'])
style.scoped = !!(style.attrs && style.attrs[':scoped'])
})
}
if (needMap) {
if (output.script && !output.script.src) {
output.script.map = generateSourceMap(
Expand Down