Skip to content

Commit 0448522

Browse files
committed
Fix undefined not allowed for configFile in ts-load
Seems like the presense of `configFile` causes problems if it is not a string
1 parent c1b4cf0 commit 0448522

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/shared.webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ function withBrowserDefaults(/**@type WebpackConfig*/extConfig, /** @type Additi
116116
// * enable sources maps for end-to-end source maps
117117
loader: 'ts-loader',
118118
options: {
119-
configFile: additionalOptions.configFile,
120119
compilerOptions: {
121120
'sourceMap': true,
122-
}
121+
},
122+
...(additionalOptions ? {} : { configFile: additionalOptions.configFile })
123123
}
124124
}]
125125
}]

0 commit comments

Comments
 (0)