Fix undefined not allowed for configFile in ts-load

Seems like the presense of  `configFile` causes problems if it is not a string
This commit is contained in:
Matt Bierner 2021-07-23 12:06:39 -07:00
parent c1b4cf00b9
commit 04485223eb
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -116,10 +116,10 @@ function withBrowserDefaults(/**@type WebpackConfig*/extConfig, /** @type Additi
// * enable sources maps for end-to-end source maps
loader: 'ts-loader',
options: {
configFile: additionalOptions.configFile,
compilerOptions: {
'sourceMap': true,
}
},
...(additionalOptions ? {} : { configFile: additionalOptions.configFile })
}
}]
}]