首页 > 解决方案 > 我在 Angular 中使用动态编译器,但它只适用于视图引擎,但不推荐使用视图引擎

问题描述

我得到这个信息:

Project is attempting to disable the Ivy compiler. Angular versions 12 and higher do not support the deprecated View Engine compiler for applications. The Ivy compiler will be used to build this project. 
For additional information or if the build fails, please see https://angular.io/guide/ivy

所以我的 NPM 包只适用于视图引擎,因为动态编译不适用于 Ivy,因为它是 AOT。

那么我可以做些什么来使用动态编译为 Ivy 构建创建呢?

这是 NPM 包: https ://github.com/patrikx3/angular-compile

标签: angularnpmdynamicbuildcompilation

解决方案


没关系,我的包也适用于常春藤。关闭。


推荐阅读