Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 0ff5b43

Browse files
PanayotCankovVasil Chimev
authored and
Vasil Chimev
committed
refactor: Add options to the @ngtools/webpack loaders for workers support (#362)
Loading the .ts files for WebWorkers using the @ngtools/webpack requires at least the tsConfigPath to be provided to the loader as options.
1 parent ab3ae97 commit 0ff5b43

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/webpack.angular.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ module.exports = env => {
6868
{ test: /\.scss$/, exclude: /\/app\.scss$/, use: ["raw-loader", "resolve-url-loader", "sass-loader"] },
6969

7070
// Compile TypeScript files with ahead-of-time compiler.
71-
{ test: /.ts$/, use: ["nativescript-dev-webpack/moduleid-compat-loader", "@ngtools/webpack"] },
71+
{ test: /.ts$/, use: [
72+
"nativescript-dev-webpack/moduleid-compat-loader",
73+
{ loader: "@ngtools/webpack", options: ngToolsWebpackOptions },
74+
]},
7275
],
7376
},
7477
plugins: [

0 commit comments

Comments
 (0)