Skip to content

Commit cf68669

Browse files
authored
refactor: remove tsconfig.aot.json (#252)
1 parent aa56da2 commit cf68669

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

app/vendor-platform.ios.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
// There is a bug in angular: https://github.com/angular/angular-cli/pull/8589/files
2-
// Legendary stuff, its webpack plugin pretty much doesn't work with empty TypeScript files in v1.8.3
31
/* tslint:disable:no-unused-expression */
42
void 0;

tsconfig.aot.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

webpack.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = env => {
1515
}
1616
const platforms = ["ios", "android"];
1717
const { snapshot, uglify, report, aot } = env;
18-
const ngToolsWebpackOptions = { tsConfigPath: aot ? "tsconfig.aot.json" : "tsconfig.json"};
18+
const ngToolsWebpackOptions = { tsConfigPath: "tsconfig.json" };
1919

2020
const config = {
2121
context: resolve("./app"),
@@ -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)