Skip to content

Commit 4b1d2fa

Browse files
authored
Fix Webpack issue that breaks with TypeScript
Adding `noEmitHelpers` to TypeScript avoid the creating of the `__extends()` function which breaks WebPack. Read more: NativeScript/nativescript-dev-webpack#8 http://stackoverflow.com/questions/36556772/webpack-and-typescript-extends
1 parent 1a12f25 commit 4b1d2fa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tsconfig.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"removeComments": true,
88
"noLib": false,
99
"preserveConstEnums": true,
10-
"suppressImplicitAnyIndexErrors": true
10+
"suppressImplicitAnyIndexErrors": true,
11+
"noEmitHelpers": true,
1112
},
1213

1314
"filesGlob": [
@@ -18,4 +19,4 @@
1819
"exclude": [
1920
"./platforms/**/*.ts"
2021
]
21-
}
22+
}

0 commit comments

Comments
 (0)