如何在没有常春藤的情况下编译库? [英] How to compile a library without Ivy?

查看:209
本文介绍了如何在没有常春藤的情况下编译库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在发布一个库,当我CD到dist/my-library时,我收到消息:

I'm publishing a library and when I cd to dist/my-library I get the message:

错误:尝试发布由Ivy编译的软件包.这是不允许的. 在尝试发布之前,请删除并重建该程序包,而不用Ivy进行编译.

ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed. Please delete and rebuild the package, without compiling with Ivy, before attempting to publish.

在没有常春藤的情况下我们如何重建?

How do we rebuild without Ivy?

推荐答案

在库项目中有一个tsconfig.lib.json文件.这是我的Angular编译器配置:

Within the library project there is a tsconfig.lib.json file. Here's my Angular compiler configuration:

  "angularCompilerOptions": {
    "skipTemplateCodegen": true,
    "strictMetadataEmit": true,
    "enableResourceInlining": true,
    "enableIvy": false
  },

这篇关于如何在没有常春藤的情况下编译库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆