@@ -12,6 +12,7 @@ const CopyWebpackPlugin = require("copy-webpack-plugin");
12
12
const { BundleAnalyzerPlugin } = require ( "webpack-bundle-analyzer" ) ;
13
13
const { NativeScriptWorkerPlugin } = require ( "nativescript-worker-loader/NativeScriptWorkerPlugin" ) ;
14
14
const UglifyJsPlugin = require ( "uglifyjs-webpack-plugin" ) ;
15
+ const { getAngularCompilerPlugin } = require ( "nativescript-dev-webpack/plugins/NativeScriptAngularCompilerPlugin" ) ;
15
16
const hashSalt = Date . now ( ) . toString ( ) ;
16
17
17
18
module . exports = env => {
@@ -26,7 +27,7 @@ module.exports = env => {
26
27
throw new Error ( "You need to provide a target platform!" ) ;
27
28
}
28
29
29
- const AngularCompilerPlugin = nsWebpack . getAngularCompilerPlugin ( platform ) ;
30
+ const AngularCompilerPlugin = getAngularCompilerPlugin ( platform ) ;
30
31
const projectRoot = __dirname ;
31
32
32
33
// Default destination inside platforms/<platform>/...
@@ -54,7 +55,7 @@ module.exports = env => {
54
55
const appFullPath = resolve ( projectRoot , appPath ) ;
55
56
const appResourcesFullPath = resolve ( projectRoot , appResourcesPath ) ;
56
57
const tsConfigName = "tsconfig.tns.json" ;
57
- const entryModule = `${ nsWebpack . getEntryModule ( appFullPath ) } .ts` ;
58
+ const entryModule = `${ nsWebpack . getEntryModule ( appFullPath , platform ) } .ts` ;
58
59
const entryPath = `.${ sep } ${ entryModule } ` ;
59
60
const entries = { bundle : entryPath } ;
60
61
if ( platform === "ios" ) {
0 commit comments