We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a2d7a0 commit 4529f83Copy full SHA for 4529f83
lib/index.js
@@ -38,7 +38,7 @@ module.exports = function (source) {
38
const options = loaderUtils.getOptions(loaderContext) || {}
39
40
const isServer = target === 'node'
41
- const isShadow = incomingQuery.shadow != null
+ const isShadow = !!options.shadowMode
42
const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production'
43
const filename = path.basename(resourcePath)
44
const context = rootContext || process.cwd()
0 commit comments