Skip to content

Commit 4529f83

Browse files
committed
fix: shadowMode still has to be an option
1 parent 7a2d7a0 commit 4529f83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = function (source) {
3838
const options = loaderUtils.getOptions(loaderContext) || {}
3939

4040
const isServer = target === 'node'
41-
const isShadow = incomingQuery.shadow != null
41+
const isShadow = !!options.shadowMode
4242
const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production'
4343
const filename = path.basename(resourcePath)
4444
const context = rootContext || process.cwd()

0 commit comments

Comments
 (0)