Angular Nativescript';s AOT编译成功-但仍然包含“编译器”包吗?
我在援引:Angular Nativescript';s AOT编译成功-但仍然包含“编译器”包吗?,angular,webpack,nativescript,angular2-aot,nativescript-angular,Angular,Webpack,Nativescript,Angular2 Aot,Nativescript Angular,我在援引: npm run ns-bundle --android --build-app --uglify 它确实成功了 如果我导航到报告文件夹(由webpack bundle size analyzer创建)-我会看到这两个文件: 打开html文件显示: 如你所见,@angular的编译器仍然存在 问题 1) 为什么编译器还在那里?(AOT应将其删除)。如何删除它? 2) 如果我将鼠标悬停在bundle.js部分,它会显示解析后的大小。那么什么是统计/解析大小 其他信息: 我必须
npm run ns-bundle --android --build-app --uglify
它确实成功了
如果我导航到报告
文件夹(由webpack bundle size analyzer
创建)-我会看到这两个文件:
打开html文件
显示:
如你所见,@angular的编译器仍然存在
问题
1) 为什么编译器还在那里?(AOT应将其删除)。如何删除它?2) 如果我将鼠标悬停在bundle.js部分,它会显示解析后的大小。那么什么是统计/解析大小
其他信息: 我必须说,当我在文件系统中搜索
bundle.js
时,我看到两个文件:
第二个:
webpack.config.json:
package.json:
main.aot.file:
ts.config.aot:@yurzui发现了问题 更改:
import {RouterExtensions} from "nativescript-angular";
与
现在-包中没有编译器
(非常感谢。)。好像在什么地方用过。尝试调试您的包。例如,尝试检查
编译器模块和所有组件是否同步(或来自jit编译器的其他内容)called@yurzui - . 那么这意味着什么呢?AOT不工作了?还是这样?我希望不会在图形中看到@compiler
,在图形中提供了JitCompilerFactory
,请确保platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory)
是Nativescript覆盖这些服务的起点,但它可能仅适用于动态平台Nativescript dynamic。我没用过
import {RouterExtensions} from "nativescript-angular/router";