Commit 4529f837 authored by Evan You's avatar Evan You

fix: shadowMode still has to be an option

parent 7a2d7a0d
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment