Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix($core): style loss under build for package that specifies `sideEf…
…fects: false` (fix #2350) (#2471)
  • Loading branch information
nashaofu committed Jul 19, 2020
1 parent 823c1df commit 7e29900
Showing 1 changed file with 1 addition and 1 deletion.
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.