Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ function createIvyPlugin(
export function getTypeScriptConfig(wco: WebpackConfigOptions): Configuration {
const {
buildOptions: { aot = false, main, polyfills },
tsConfig,
tsConfigPath,
} = wco;

Expand All @@ -100,8 +101,12 @@ export function getTypeScriptConfig(wco: WebpackConfigOptions): Configuration {
module: {
rules: [
{
test: /\.[jt]sx?$/,
test: tsConfig.options.allowJs ? /\.[tj]sx?$/ : /\.tsx?$/,
loader: AngularWebpackLoaderPath,
// The below are known paths that are not part of the TypeScript compilation even when allowJs is enabled.
exclude: [
/[/\\](?:css-loader|mini-css-extract-plugin|webpack-dev-server|webpack)[/\\]/,
],
},
],
},
Expand Down