Skip to content

Commit

Permalink
fix: shadowMode still has to be an option
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 4, 2018
1 parent 7a2d7a0 commit 4529f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function (source) {
const options = loaderUtils.getOptions(loaderContext) || {}

const isServer = target === 'node'
const isShadow = incomingQuery.shadow != null
const isShadow = !!options.shadowMode
const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production'
const filename = path.basename(resourcePath)
const context = rootContext || process.cwd()
Expand Down

0 comments on commit 4529f83

Please sign in to comment.