Skip to content

Commit 68bd963

Browse files
committed
Account for valid falsey values passed for devtool option in test helper
1 parent 16c317a commit 68bd963

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/helpers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ function compile(fixture, config = {}, options = {}) {
154154
// eslint-disable-next-line no-param-reassign
155155
config = {
156156
mode: 'development',
157-
devtool: config.devtool || 'source-map',
157+
158+
// Account for valid `false` values for devtool
159+
devtool: config.devtool != null ? config.devtool : 'source-map',
158160
context: path.resolve(__dirname, 'fixtures'),
159161
entry: path.resolve(__dirname, 'fixtures', fixture),
160162
output: outputConfig(config),

0 commit comments

Comments
 (0)