From a5dac53a445479cc2121db7d9a5c5f52f61fce2e Mon Sep 17 00:00:00 2001 From: fatme Date: Thu, 11 Apr 2019 13:57:22 +0300 Subject: [PATCH] fix: fix "ERROR in Must have a source file to refactor." error from ngCompilerPlugin on `test` command --- templates/webpack.angular.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/webpack.angular.js b/templates/webpack.angular.js index 2f196cb2..afff3af5 100644 --- a/templates/webpack.angular.js +++ b/templates/webpack.angular.js @@ -88,7 +88,7 @@ module.exports = env => { const ngCompilerPlugin = new AngularCompilerPlugin({ hostReplacementPaths: nsWebpack.getResolver([platform, "tns"]), platformTransformers: ngCompilerTransformers.map(t => t(() => ngCompilerPlugin, resolve(appFullPath, entryModule))), - mainPath: resolve(appPath, entryModule), + mainPath: join(appFullPath, entryModule), tsConfigPath: join(__dirname, tsConfigName), skipCodeGeneration: !aot, sourceMap: !!sourceMap,