Skip to content

Commit

Permalink
fix($core): style loss under build for package that specifies `sideEf…
Browse files Browse the repository at this point in the history
…fects: false` (fix #2350) (#2471)
  • Loading branch information
nashaofu authored Jul 19, 2020
1 parent 823c1df commit 7e29900
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ module.exports = function createBaseConfig (context, isServer) {
})

function createCSSRule (lang, test, loader, options) {
const baseRule = config.module.rule(lang).test(test)
const baseRule = config.module.rule(lang).test(test).sideEffects(true)
const modulesRule = baseRule.oneOf('modules').resourceQuery(/module/)
const normalRule = baseRule.oneOf('normal')

Expand Down

0 comments on commit 7e29900

Please sign in to comment.