Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
loader: 'ts-loader',
options: {
configFile: options.tsConfig,
transpileOnly: true,
getCustomTransformers: program => ({
before: [transformers_1.inlineFilesTransformer(program), transformers_1.stripStylesTransformer(program)],
}),
},
},
],
},
resolve: {
extensions,
alias: getAliases(options),
plugins: [
new tsconfig_paths_webpack_plugin_1.default({
configFile: options.tsConfig,
extensions,
mainFields,
}),
],
mainFields,
},
performance: {
hints: false,
},
plugins: [
new ForkTsCheckerWebpackPlugin({
tsconfig: options.tsConfig,
useTypescriptIncrementalApi: options.useTypescriptIncrementalApi,
workers: options.useTypescriptIncrementalApi
? ForkTsCheckerWebpackPlugin.ONE_CPU