umijs / father

NPM package development tool
MIT License
2.12k stars 273 forks source link

father build 输出打包文件后,如果不修改代码,再次执行 father build 会丢失 .d.ts 文件 #644

Closed AmAzing129 closed 1 year ago

AmAzing129 commented 1 year ago

复现: npx create-father my-father-project npx father build 再次执行 npx father build

n3taway commented 1 year ago

+1 感觉是缓存的问题

PeachScript commented 1 year ago

已回退 latest 版本到 4.1.9

PeachScript commented 1 year ago

@Carrotzpc 有空帮忙看下这个问题?

Carrotzpc commented 1 year ago

好,我看下

Carrotzpc commented 1 year ago

查阅了下相关资料,感觉开启 incremental 有挺多问题的,开启后,第二次构建不会产出没有改动的文件,这样就导致了 issue 中的问题出现,为了修复这个问题,可以在第一次构建的时候用 father 的持久缓存,缓存下相关 dts 文件,不过有个问题是用户删除了某个源文件后,dts 缓存文件还在,可能可以通过其他方式做到用户删除源文件后,相应的 dts 缓存文件自动失效,不过整体实现起来成本不低,维护起来估计也会比较麻烦,我建议是不缓存 dts 文件,做全量构建比较靠谱@PeachScript

incremental 相关 issue:https://github.com/microsoft/TypeScript/issues/30602

PeachScript commented 1 year ago

@Carrotzpc 如果是在原来持久缓存的基础上 + merge incremental 的结果做输出可以满足简单 + 可靠两点吗;比如现在有 a.d.ts 的持久缓存且它需要重新构建,此时仍然做 incremental 构建,如果 incremental 产物中有 a.d.ts 就覆盖目前的缓存结果,如果没有 a.d.ts 就仍然使用缓存的结果,最后再写入磁盘

Carrotzpc commented 1 year ago

感觉不太可靠,比如 a.ts 源文件删除了,缓存中的 a.d.ts 该如何处理?

PeachScript commented 1 year ago

缓存中的 a.d.ts 该如何处理

目前所有持久缓存都没有做主动清理,会一直保留到用户重装 node_modules,即便它不会被用到;但我理解这个应该不会影响缓存的可靠性,只是会占用磁盘空间?

Carrotzpc commented 1 year ago

我的意思是缓存中如果 a.d.ts 一直存在的话,按照 ”持久缓存的基础上 + merge incremental“ 的思路,a.d.ts 还是会被写入到 dist 中 @PeachScript

PeachScript commented 1 year ago

a.d.ts 还是会被写入到 dist 中

只有传入的文件才需要生成 d.ts,如果 a.ts 已经被删除了,那这里传入的列表中就不会有它,也就不会为它生成 d.ts:https://github.com/umijs/father/blob/v4.1.9/src/builder/bundless/dts/index.ts#L121

Carrotzpc commented 1 year ago

增量编译只会产生有变动的文件,我们每次构建要生成所有文件的话,需要从缓存的文件中找出所有的文件,缓存的文件里是包含 a.d.ts 的,如果非要加这个缓存的话,倒是可以通过传入的文件找到其对应的缓存,然后增量编译再覆盖有变动的部分,就是感觉这么实现意义大不大,构建速度没提升多少,代码复杂度倒是挺高的😂

fz6m commented 1 year ago

incremental 这个特性 drop 掉吧,目前社区没见到过广泛使用,只有很少量的 case ,我的建议是不推荐使用。

Carrotzpc commented 1 year ago

先按照移除 incremental 直接全量构建的思路提了一个 pr #648

PeachScript commented 1 year ago

不太赞成每次跑全量构建,tsc 是真的很慢,如果不利用缓存,那么在大项目中的 watch 速度会受到很大的影响;至于是不是用 incremental 缓存来提速,可以再讨论下,也许用 tsc watch 会更快?

Carrotzpc commented 1 year ago

可以找个大项目看看用 incremental 提升构建速度明显不,用 tsc watch 指的是 father dev 的时候?考虑用 esbuild 或者 swc 不?

PeachScript commented 1 year ago

可以找个大项目看看用 incremental 提升构建速度明显不

没有做过 benchmark,但有缓存和无缓存的区别还是很明显的,之前在 Umi 项目里验证过

tsc watch 指的是 father dev 的时候?

是指 tsc watch d.ts 的生成,现在 watch 是 father 做的,再调用 ts 做编译,每次都是一个新的 Program 实例,肯定会有额外的开销

考虑用 esbuild 或者 swc 不?

源码构建已经是 esbuild/swc/babel 了,但它们都不能生成 d.ts

Carrotzpc commented 1 year ago

主要是想看用 incremental 这种增量构建的方式在大项目中提升速度明显不,father 本身持久缓存肯定是挺明显的,有没有用 father 开发的大型项目,我可以本地验证下

Carrotzpc commented 1 year ago

我用 https://github.com/antvis/AVA/tree/master/packages/ava-react 作为例子对比了下,首次构建完成后,删除 dts 相关缓存:

rm -rf node_modules/.cache/father/tsc node_modules/.cache/father/bundless-dts

在 ava-react 中再次执行构建:

nr build

日志如下:

> @antv/ava-react@3.1.0 build /home/zhangpc/Projects/github/AVA/packages/ava-react
> father build
info  - Clean output directories
info  - Bundle from src/index to dist/ava-react.min.js
info  - Bundless for src directory to esm format
event - Bundless src/index.ts to esm/index.js (with declaration)
event - Bundless src/InsightCard/constants.tsx to esm/InsightCard/constants.js (with declaration)
event - Bundless src/InsightCard/index.ts to esm/InsightCard/index.js (with declaration)
event - Bundless src/InsightCard/InsightCard.tsx to esm/InsightCard/InsightCard.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/components/ChartCarousel.tsx to esm/InsightCard/ntvPlugins/components/ChartCarousel.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/components/G2Chart.tsx to esm/InsightCard/ntvPlugins/components/G2Chart.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/index.ts to esm/InsightCard/ntvPlugins/index.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/plugins/chartPlugin.tsx to esm/InsightCard/ntvPlugins/plugins/chartPlugin.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/types.ts to esm/InsightCard/ntvPlugins/types.js (with declaration)
event - Bundless src/InsightCard/styled/container.tsx to esm/InsightCard/styled/container.js (with declaration)
event - Bundless src/InsightCard/styled/iconButton.tsx to esm/InsightCard/styled/iconButton.js (with declaration)
event - Bundless src/InsightCard/styled/tag.tsx to esm/InsightCard/styled/tag.js (with declaration)
event - Bundless src/InsightCard/Title/index.tsx to esm/InsightCard/Title/index.js (with declaration)
event - Bundless src/InsightCard/Toolbar/constants.ts to esm/InsightCard/Toolbar/constants.js (with declaration)
event - Bundless src/InsightCard/Toolbar/defaultTools.tsx to esm/InsightCard/Toolbar/defaultTools.js (with declaration)
event - Bundless src/InsightCard/Toolbar/index.tsx to esm/InsightCard/Toolbar/index.js (with declaration)
event - Bundless src/InsightCard/Toolbar/types.ts to esm/InsightCard/Toolbar/types.js (with declaration)
event - Bundless src/InsightCard/types.ts to esm/InsightCard/types.js (with declaration)
event - Bundless src/InsightCard/utils/specGenerator.ts to esm/InsightCard/utils/specGenerator.js (with declaration)
event - Bundless src/NarrativeTextVis/assets/icons.tsx to esm/NarrativeTextVis/assets/icons.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/helpers/copy.ts to esm/NarrativeTextVis/chore/exporter/helpers/copy.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/helpers/transformHtml.ts to esm/NarrativeTextVis/chore/exporter/helpers/transformHtml.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/index.ts to esm/NarrativeTextVis/chore/exporter/index.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/TextExporter.ts to esm/NarrativeTextVis/chore/exporter/TextExporter.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createCustomBlockFactory.ts to esm/NarrativeTextVis/chore/plugin/createCustomBlockFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createCustomPhraseFactory.ts to esm/NarrativeTextVis/chore/plugin/createCustomPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createEntityPhraseFactory.tsx to esm/NarrativeTextVis/chore/plugin/createEntityPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createPhraseFactory.ts to esm/NarrativeTextVis/chore/plugin/createPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/index.ts to esm/NarrativeTextVis/chore/plugin/index.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/plugin-protocol.type.ts to esm/NarrativeTextVis/chore/plugin/plugin-protocol.type.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/PluginManager.ts to esm/NarrativeTextVis/chore/plugin/PluginManager.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createCompare.tsx to esm/NarrativeTextVis/chore/plugin/presets/createCompare.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createContributeRatio.tsx to esm/NarrativeTextVis/chore/plugin/presets/createContributeRatio.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createDimensionValue.tsx to esm/NarrativeTextVis/chore/plugin/presets/createDimensionValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createMetricName.tsx to esm/NarrativeTextVis/chore/plugin/presets/createMetricName.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createMetricValue.tsx to esm/NarrativeTextVis/chore/plugin/presets/createMetricValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createOtherMetricValue.tsx to esm/NarrativeTextVis/chore/plugin/presets/createOtherMetricValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createProportion.tsx to esm/NarrativeTextVis/chore/plugin/presets/createProportion.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createTimeDesc.tsx to esm/NarrativeTextVis/chore/plugin/presets/createTimeDesc.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createTrendDesc.tsx to esm/NarrativeTextVis/chore/plugin/presets/createTrendDesc.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/index.ts to esm/NarrativeTextVis/chore/plugin/presets/index.js (with declaration)
event - Bundless src/NarrativeTextVis/constants.ts to esm/NarrativeTextVis/constants.js (with declaration)
event - Bundless src/NarrativeTextVis/index.ts to esm/NarrativeTextVis/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/getElementFontSize.ts to esm/NarrativeTextVis/line-charts/hooks/getElementFontSize.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/index.ts to esm/NarrativeTextVis/line-charts/hooks/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/useSvgWrapper.tsx to esm/NarrativeTextVis/line-charts/hooks/useSvgWrapper.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/index.ts to esm/NarrativeTextVis/line-charts/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/index.ts to esm/NarrativeTextVis/line-charts/line/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/scaleLinear.ts to esm/NarrativeTextVis/line-charts/line/scaleLinear.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/SingleLineChart.tsx to esm/NarrativeTextVis/line-charts/line/SingleLineChart.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/useLineCompute.ts to esm/NarrativeTextVis/line-charts/line/useLineCompute.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/getArcPath.ts to esm/NarrativeTextVis/line-charts/proportion/getArcPath.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/index.tsx to esm/NarrativeTextVis/line-charts/proportion/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/ProportionChart.tsx to esm/NarrativeTextVis/line-charts/proportion/ProportionChart.js (with declaration)
event - Bundless src/NarrativeTextVis/NarrativeTextVis.tsx to esm/NarrativeTextVis/NarrativeTextVis.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Bullets.tsx to esm/NarrativeTextVis/paragraph/Bullets.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Heading.tsx to esm/NarrativeTextVis/paragraph/Heading.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Headline.tsx to esm/NarrativeTextVis/paragraph/Headline.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/index.tsx to esm/NarrativeTextVis/paragraph/index.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/TextLine.tsx to esm/NarrativeTextVis/paragraph/TextLine.js (with declaration)
event - Bundless src/NarrativeTextVis/phrases/index.tsx to esm/NarrativeTextVis/phrases/index.js (with declaration)
event - Bundless src/NarrativeTextVis/phrases/Phrase.tsx to esm/NarrativeTextVis/phrases/Phrase.js (with declaration)
event - Bundless src/NarrativeTextVis/section/index.tsx to esm/NarrativeTextVis/section/index.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/bullet.tsx to esm/NarrativeTextVis/styled/bullet.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/container.tsx to esm/NarrativeTextVis/styled/container.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/entity.tsx to esm/NarrativeTextVis/styled/entity.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/heading.tsx to esm/NarrativeTextVis/styled/heading.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/index.tsx to esm/NarrativeTextVis/styled/index.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/marks.tsx to esm/NarrativeTextVis/styled/marks.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/paragraph.tsx to esm/NarrativeTextVis/styled/paragraph.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/phrase.tsx to esm/NarrativeTextVis/styled/phrase.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getFontSize.ts to esm/NarrativeTextVis/theme/getFontSize.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getLineHeight.ts to esm/NarrativeTextVis/theme/getLineHeight.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getThemeColor.ts to esm/NarrativeTextVis/theme/getThemeColor.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/index.ts to esm/NarrativeTextVis/theme/index.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/seed.ts to esm/NarrativeTextVis/theme/seed.js (with declaration)
event - Bundless src/NarrativeTextVis/types/enhance-spec.ts to esm/NarrativeTextVis/types/enhance-spec.js (with declaration)
event - Bundless src/NarrativeTextVis/types/index.ts to esm/NarrativeTextVis/types/index.js (with declaration)
event - Bundless src/NarrativeTextVis/types/props.ts to esm/NarrativeTextVis/types/props.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/functionalize.ts to esm/NarrativeTextVis/utils/functionalize.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/getCollapseProps.tsx to esm/NarrativeTextVis/utils/getCollapseProps.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/index.ts to esm/NarrativeTextVis/utils/index.js (with declaration)
event - Bundless src/utils/classnames.ts to esm/utils/classnames.js (with declaration)
event - Bundless src/utils/getPrefixCls.ts to esm/utils/getPrefixCls.js (with declaration)
event - Bundless src/utils/index.ts to esm/utils/index.js (with declaration)
event - Generate declaration files...
event - Transformed successfully in 7898 ms (85 files)
info  - Bundless for src directory to cjs format
event - Bundless src/index.ts to lib/index.js (with declaration)
event - Bundless src/InsightCard/constants.tsx to lib/InsightCard/constants.js (with declaration)
event - Bundless src/InsightCard/index.ts to lib/InsightCard/index.js (with declaration)
event - Bundless src/InsightCard/InsightCard.tsx to lib/InsightCard/InsightCard.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/components/ChartCarousel.tsx to lib/InsightCard/ntvPlugins/components/ChartCarousel.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/components/G2Chart.tsx to lib/InsightCard/ntvPlugins/components/G2Chart.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/index.ts to lib/InsightCard/ntvPlugins/index.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/plugins/chartPlugin.tsx to lib/InsightCard/ntvPlugins/plugins/chartPlugin.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/types.ts to lib/InsightCard/ntvPlugins/types.js (with declaration)
event - Bundless src/InsightCard/styled/container.tsx to lib/InsightCard/styled/container.js (with declaration)
event - Bundless src/InsightCard/styled/iconButton.tsx to lib/InsightCard/styled/iconButton.js (with declaration)
event - Bundless src/InsightCard/styled/tag.tsx to lib/InsightCard/styled/tag.js (with declaration)
event - Bundless src/InsightCard/Title/index.tsx to lib/InsightCard/Title/index.js (with declaration)
event - Bundless src/InsightCard/Toolbar/constants.ts to lib/InsightCard/Toolbar/constants.js (with declaration)
event - Bundless src/InsightCard/Toolbar/defaultTools.tsx to lib/InsightCard/Toolbar/defaultTools.js (with declaration)
event - Bundless src/InsightCard/Toolbar/index.tsx to lib/InsightCard/Toolbar/index.js (with declaration)
event - Bundless src/InsightCard/Toolbar/types.ts to lib/InsightCard/Toolbar/types.js (with declaration)
event - Bundless src/InsightCard/types.ts to lib/InsightCard/types.js (with declaration)
event - Bundless src/InsightCard/utils/specGenerator.ts to lib/InsightCard/utils/specGenerator.js (with declaration)
event - Bundless src/NarrativeTextVis/assets/icons.tsx to lib/NarrativeTextVis/assets/icons.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/helpers/copy.ts to lib/NarrativeTextVis/chore/exporter/helpers/copy.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/helpers/transformHtml.ts to lib/NarrativeTextVis/chore/exporter/helpers/transformHtml.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/index.ts to lib/NarrativeTextVis/chore/exporter/index.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/TextExporter.ts to lib/NarrativeTextVis/chore/exporter/TextExporter.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createCustomBlockFactory.ts to lib/NarrativeTextVis/chore/plugin/createCustomBlockFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createCustomPhraseFactory.ts to lib/NarrativeTextVis/chore/plugin/createCustomPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createEntityPhraseFactory.tsx to lib/NarrativeTextVis/chore/plugin/createEntityPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createPhraseFactory.ts to lib/NarrativeTextVis/chore/plugin/createPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/index.ts to lib/NarrativeTextVis/chore/plugin/index.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/plugin-protocol.type.ts to lib/NarrativeTextVis/chore/plugin/plugin-protocol.type.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/PluginManager.ts to lib/NarrativeTextVis/chore/plugin/PluginManager.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createCompare.tsx to lib/NarrativeTextVis/chore/plugin/presets/createCompare.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createContributeRatio.tsx to lib/NarrativeTextVis/chore/plugin/presets/createContributeRatio.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createDimensionValue.tsx to lib/NarrativeTextVis/chore/plugin/presets/createDimensionValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createMetricName.tsx to lib/NarrativeTextVis/chore/plugin/presets/createMetricName.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createMetricValue.tsx to lib/NarrativeTextVis/chore/plugin/presets/createMetricValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createOtherMetricValue.tsx to lib/NarrativeTextVis/chore/plugin/presets/createOtherMetricValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createProportion.tsx to lib/NarrativeTextVis/chore/plugin/presets/createProportion.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createTimeDesc.tsx to lib/NarrativeTextVis/chore/plugin/presets/createTimeDesc.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createTrendDesc.tsx to lib/NarrativeTextVis/chore/plugin/presets/createTrendDesc.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/index.ts to lib/NarrativeTextVis/chore/plugin/presets/index.js (with declaration)
event - Bundless src/NarrativeTextVis/constants.ts to lib/NarrativeTextVis/constants.js (with declaration)
event - Bundless src/NarrativeTextVis/index.ts to lib/NarrativeTextVis/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/getElementFontSize.ts to lib/NarrativeTextVis/line-charts/hooks/getElementFontSize.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/index.ts to lib/NarrativeTextVis/line-charts/hooks/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/useSvgWrapper.tsx to lib/NarrativeTextVis/line-charts/hooks/useSvgWrapper.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/index.ts to lib/NarrativeTextVis/line-charts/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/index.ts to lib/NarrativeTextVis/line-charts/line/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/scaleLinear.ts to lib/NarrativeTextVis/line-charts/line/scaleLinear.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/SingleLineChart.tsx to lib/NarrativeTextVis/line-charts/line/SingleLineChart.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/useLineCompute.ts to lib/NarrativeTextVis/line-charts/line/useLineCompute.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/getArcPath.ts to lib/NarrativeTextVis/line-charts/proportion/getArcPath.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/index.tsx to lib/NarrativeTextVis/line-charts/proportion/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/ProportionChart.tsx to lib/NarrativeTextVis/line-charts/proportion/ProportionChart.js (with declaration)
event - Bundless src/NarrativeTextVis/NarrativeTextVis.tsx to lib/NarrativeTextVis/NarrativeTextVis.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Bullets.tsx to lib/NarrativeTextVis/paragraph/Bullets.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Heading.tsx to lib/NarrativeTextVis/paragraph/Heading.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Headline.tsx to lib/NarrativeTextVis/paragraph/Headline.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/index.tsx to lib/NarrativeTextVis/paragraph/index.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/TextLine.tsx to lib/NarrativeTextVis/paragraph/TextLine.js (with declaration)
event - Bundless src/NarrativeTextVis/phrases/index.tsx to lib/NarrativeTextVis/phrases/index.js (with declaration)
event - Bundless src/NarrativeTextVis/phrases/Phrase.tsx to lib/NarrativeTextVis/phrases/Phrase.js (with declaration)
event - Bundless src/NarrativeTextVis/section/index.tsx to lib/NarrativeTextVis/section/index.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/bullet.tsx to lib/NarrativeTextVis/styled/bullet.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/container.tsx to lib/NarrativeTextVis/styled/container.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/entity.tsx to lib/NarrativeTextVis/styled/entity.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/heading.tsx to lib/NarrativeTextVis/styled/heading.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/index.tsx to lib/NarrativeTextVis/styled/index.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/marks.tsx to lib/NarrativeTextVis/styled/marks.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/paragraph.tsx to lib/NarrativeTextVis/styled/paragraph.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/phrase.tsx to lib/NarrativeTextVis/styled/phrase.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getFontSize.ts to lib/NarrativeTextVis/theme/getFontSize.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getLineHeight.ts to lib/NarrativeTextVis/theme/getLineHeight.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getThemeColor.ts to lib/NarrativeTextVis/theme/getThemeColor.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/index.ts to lib/NarrativeTextVis/theme/index.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/seed.ts to lib/NarrativeTextVis/theme/seed.js (with declaration)
event - Bundless src/NarrativeTextVis/types/enhance-spec.ts to lib/NarrativeTextVis/types/enhance-spec.js (with declaration)
event - Bundless src/NarrativeTextVis/types/index.ts to lib/NarrativeTextVis/types/index.js (with declaration)
event - Bundless src/NarrativeTextVis/types/props.ts to lib/NarrativeTextVis/types/props.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/functionalize.ts to lib/NarrativeTextVis/utils/functionalize.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/getCollapseProps.tsx to lib/NarrativeTextVis/utils/getCollapseProps.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/index.ts to lib/NarrativeTextVis/utils/index.js (with declaration)
event - Bundless src/utils/classnames.ts to lib/utils/classnames.js (with declaration)
event - Bundless src/utils/getPrefixCls.ts to lib/utils/getPrefixCls.js (with declaration)
event - Bundless src/utils/index.ts to lib/utils/index.js (with declaration)
event - Generate declaration files...
event - Transformed successfully in 2859 ms (85 files)

不做任何更改后,再次执行构建:

nr build

日志如下:

> @antv/ava-react@3.1.0 build /home/zhangpc/Projects/github/AVA/packages/ava-react
> father build

info  - Clean output directories
info  - Bundle from src/index to dist/ava-react.min.js
info  - Bundless for src directory to esm format
event - Bundless src/index.ts to esm/index.js (with declaration)
event - Bundless src/InsightCard/constants.tsx to esm/InsightCard/constants.js (with declaration)
event - Bundless src/InsightCard/index.ts to esm/InsightCard/index.js (with declaration)
event - Bundless src/InsightCard/InsightCard.tsx to esm/InsightCard/InsightCard.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/components/ChartCarousel.tsx to esm/InsightCard/ntvPlugins/components/ChartCarousel.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/components/G2Chart.tsx to esm/InsightCard/ntvPlugins/components/G2Chart.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/index.ts to esm/InsightCard/ntvPlugins/index.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/plugins/chartPlugin.tsx to esm/InsightCard/ntvPlugins/plugins/chartPlugin.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/types.ts to esm/InsightCard/ntvPlugins/types.js (with declaration)
event - Bundless src/InsightCard/styled/container.tsx to esm/InsightCard/styled/container.js (with declaration)
event - Bundless src/InsightCard/styled/iconButton.tsx to esm/InsightCard/styled/iconButton.js (with declaration)
event - Bundless src/InsightCard/styled/tag.tsx to esm/InsightCard/styled/tag.js (with declaration)
event - Bundless src/InsightCard/Title/index.tsx to esm/InsightCard/Title/index.js (with declaration)
event - Bundless src/InsightCard/Toolbar/constants.ts to esm/InsightCard/Toolbar/constants.js (with declaration)
event - Bundless src/InsightCard/Toolbar/defaultTools.tsx to esm/InsightCard/Toolbar/defaultTools.js (with declaration)
event - Bundless src/InsightCard/Toolbar/index.tsx to esm/InsightCard/Toolbar/index.js (with declaration)
event - Bundless src/InsightCard/Toolbar/types.ts to esm/InsightCard/Toolbar/types.js (with declaration)
event - Bundless src/InsightCard/types.ts to esm/InsightCard/types.js (with declaration)
event - Bundless src/InsightCard/utils/specGenerator.ts to esm/InsightCard/utils/specGenerator.js (with declaration)
event - Bundless src/NarrativeTextVis/assets/icons.tsx to esm/NarrativeTextVis/assets/icons.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/helpers/copy.ts to esm/NarrativeTextVis/chore/exporter/helpers/copy.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/helpers/transformHtml.ts to esm/NarrativeTextVis/chore/exporter/helpers/transformHtml.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/index.ts to esm/NarrativeTextVis/chore/exporter/index.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/TextExporter.ts to esm/NarrativeTextVis/chore/exporter/TextExporter.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createCustomBlockFactory.ts to esm/NarrativeTextVis/chore/plugin/createCustomBlockFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createCustomPhraseFactory.ts to esm/NarrativeTextVis/chore/plugin/createCustomPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createEntityPhraseFactory.tsx to esm/NarrativeTextVis/chore/plugin/createEntityPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createPhraseFactory.ts to esm/NarrativeTextVis/chore/plugin/createPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/index.ts to esm/NarrativeTextVis/chore/plugin/index.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/plugin-protocol.type.ts to esm/NarrativeTextVis/chore/plugin/plugin-protocol.type.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/PluginManager.ts to esm/NarrativeTextVis/chore/plugin/PluginManager.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createCompare.tsx to esm/NarrativeTextVis/chore/plugin/presets/createCompare.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createContributeRatio.tsx to esm/NarrativeTextVis/chore/plugin/presets/createContributeRatio.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createDimensionValue.tsx to esm/NarrativeTextVis/chore/plugin/presets/createDimensionValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createMetricName.tsx to esm/NarrativeTextVis/chore/plugin/presets/createMetricName.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createMetricValue.tsx to esm/NarrativeTextVis/chore/plugin/presets/createMetricValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createOtherMetricValue.tsx to esm/NarrativeTextVis/chore/plugin/presets/createOtherMetricValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createProportion.tsx to esm/NarrativeTextVis/chore/plugin/presets/createProportion.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createTimeDesc.tsx to esm/NarrativeTextVis/chore/plugin/presets/createTimeDesc.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createTrendDesc.tsx to esm/NarrativeTextVis/chore/plugin/presets/createTrendDesc.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/index.ts to esm/NarrativeTextVis/chore/plugin/presets/index.js (with declaration)
event - Bundless src/NarrativeTextVis/constants.ts to esm/NarrativeTextVis/constants.js (with declaration)
event - Bundless src/NarrativeTextVis/index.ts to esm/NarrativeTextVis/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/getElementFontSize.ts to esm/NarrativeTextVis/line-charts/hooks/getElementFontSize.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/index.ts to esm/NarrativeTextVis/line-charts/hooks/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/useSvgWrapper.tsx to esm/NarrativeTextVis/line-charts/hooks/useSvgWrapper.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/index.ts to esm/NarrativeTextVis/line-charts/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/index.ts to esm/NarrativeTextVis/line-charts/line/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/scaleLinear.ts to esm/NarrativeTextVis/line-charts/line/scaleLinear.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/SingleLineChart.tsx to esm/NarrativeTextVis/line-charts/line/SingleLineChart.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/useLineCompute.ts to esm/NarrativeTextVis/line-charts/line/useLineCompute.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/getArcPath.ts to esm/NarrativeTextVis/line-charts/proportion/getArcPath.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/index.tsx to esm/NarrativeTextVis/line-charts/proportion/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/ProportionChart.tsx to esm/NarrativeTextVis/line-charts/proportion/ProportionChart.js (with declaration)
event - Bundless src/NarrativeTextVis/NarrativeTextVis.tsx to esm/NarrativeTextVis/NarrativeTextVis.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Bullets.tsx to esm/NarrativeTextVis/paragraph/Bullets.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Heading.tsx to esm/NarrativeTextVis/paragraph/Heading.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Headline.tsx to esm/NarrativeTextVis/paragraph/Headline.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/index.tsx to esm/NarrativeTextVis/paragraph/index.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/TextLine.tsx to esm/NarrativeTextVis/paragraph/TextLine.js (with declaration)
event - Bundless src/NarrativeTextVis/phrases/index.tsx to esm/NarrativeTextVis/phrases/index.js (with declaration)
event - Bundless src/NarrativeTextVis/phrases/Phrase.tsx to esm/NarrativeTextVis/phrases/Phrase.js (with declaration)
event - Bundless src/NarrativeTextVis/section/index.tsx to esm/NarrativeTextVis/section/index.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/bullet.tsx to esm/NarrativeTextVis/styled/bullet.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/container.tsx to esm/NarrativeTextVis/styled/container.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/entity.tsx to esm/NarrativeTextVis/styled/entity.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/heading.tsx to esm/NarrativeTextVis/styled/heading.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/index.tsx to esm/NarrativeTextVis/styled/index.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/marks.tsx to esm/NarrativeTextVis/styled/marks.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/paragraph.tsx to esm/NarrativeTextVis/styled/paragraph.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/phrase.tsx to esm/NarrativeTextVis/styled/phrase.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getFontSize.ts to esm/NarrativeTextVis/theme/getFontSize.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getLineHeight.ts to esm/NarrativeTextVis/theme/getLineHeight.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getThemeColor.ts to esm/NarrativeTextVis/theme/getThemeColor.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/index.ts to esm/NarrativeTextVis/theme/index.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/seed.ts to esm/NarrativeTextVis/theme/seed.js (with declaration)
event - Bundless src/NarrativeTextVis/types/enhance-spec.ts to esm/NarrativeTextVis/types/enhance-spec.js (with declaration)
event - Bundless src/NarrativeTextVis/types/index.ts to esm/NarrativeTextVis/types/index.js (with declaration)
event - Bundless src/NarrativeTextVis/types/props.ts to esm/NarrativeTextVis/types/props.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/functionalize.ts to esm/NarrativeTextVis/utils/functionalize.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/getCollapseProps.tsx to esm/NarrativeTextVis/utils/getCollapseProps.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/index.ts to esm/NarrativeTextVis/utils/index.js (with declaration)
event - Bundless src/utils/classnames.ts to esm/utils/classnames.js (with declaration)
event - Bundless src/utils/getPrefixCls.ts to esm/utils/getPrefixCls.js (with declaration)
event - Bundless src/utils/index.ts to esm/utils/index.js (with declaration)
event - Generate declaration files...
event - Transformed successfully in 4122 ms (85 files)
info  - Bundless for src directory to cjs format
event - Bundless src/index.ts to lib/index.js (with declaration)
event - Bundless src/InsightCard/constants.tsx to lib/InsightCard/constants.js (with declaration)
event - Bundless src/InsightCard/index.ts to lib/InsightCard/index.js (with declaration)
event - Bundless src/InsightCard/InsightCard.tsx to lib/InsightCard/InsightCard.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/components/ChartCarousel.tsx to lib/InsightCard/ntvPlugins/components/ChartCarousel.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/components/G2Chart.tsx to lib/InsightCard/ntvPlugins/components/G2Chart.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/index.ts to lib/InsightCard/ntvPlugins/index.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/plugins/chartPlugin.tsx to lib/InsightCard/ntvPlugins/plugins/chartPlugin.js (with declaration)
event - Bundless src/InsightCard/ntvPlugins/types.ts to lib/InsightCard/ntvPlugins/types.js (with declaration)
event - Bundless src/InsightCard/styled/container.tsx to lib/InsightCard/styled/container.js (with declaration)
event - Bundless src/InsightCard/styled/iconButton.tsx to lib/InsightCard/styled/iconButton.js (with declaration)
event - Bundless src/InsightCard/styled/tag.tsx to lib/InsightCard/styled/tag.js (with declaration)
event - Bundless src/InsightCard/Title/index.tsx to lib/InsightCard/Title/index.js (with declaration)
event - Bundless src/InsightCard/Toolbar/constants.ts to lib/InsightCard/Toolbar/constants.js (with declaration)
event - Bundless src/InsightCard/Toolbar/defaultTools.tsx to lib/InsightCard/Toolbar/defaultTools.js (with declaration)
event - Bundless src/InsightCard/Toolbar/index.tsx to lib/InsightCard/Toolbar/index.js (with declaration)
event - Bundless src/InsightCard/Toolbar/types.ts to lib/InsightCard/Toolbar/types.js (with declaration)
event - Bundless src/InsightCard/types.ts to lib/InsightCard/types.js (with declaration)
event - Bundless src/InsightCard/utils/specGenerator.ts to lib/InsightCard/utils/specGenerator.js (with declaration)
event - Bundless src/NarrativeTextVis/assets/icons.tsx to lib/NarrativeTextVis/assets/icons.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/helpers/copy.ts to lib/NarrativeTextVis/chore/exporter/helpers/copy.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/helpers/transformHtml.ts to lib/NarrativeTextVis/chore/exporter/helpers/transformHtml.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/index.ts to lib/NarrativeTextVis/chore/exporter/index.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/exporter/TextExporter.ts to lib/NarrativeTextVis/chore/exporter/TextExporter.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createCustomBlockFactory.ts to lib/NarrativeTextVis/chore/plugin/createCustomBlockFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createCustomPhraseFactory.ts to lib/NarrativeTextVis/chore/plugin/createCustomPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createEntityPhraseFactory.tsx to lib/NarrativeTextVis/chore/plugin/createEntityPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/createPhraseFactory.ts to lib/NarrativeTextVis/chore/plugin/createPhraseFactory.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/index.ts to lib/NarrativeTextVis/chore/plugin/index.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/plugin-protocol.type.ts to lib/NarrativeTextVis/chore/plugin/plugin-protocol.type.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/PluginManager.ts to lib/NarrativeTextVis/chore/plugin/PluginManager.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createCompare.tsx to lib/NarrativeTextVis/chore/plugin/presets/createCompare.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createContributeRatio.tsx to lib/NarrativeTextVis/chore/plugin/presets/createContributeRatio.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createDimensionValue.tsx to lib/NarrativeTextVis/chore/plugin/presets/createDimensionValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createMetricName.tsx to lib/NarrativeTextVis/chore/plugin/presets/createMetricName.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createMetricValue.tsx to lib/NarrativeTextVis/chore/plugin/presets/createMetricValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createOtherMetricValue.tsx to lib/NarrativeTextVis/chore/plugin/presets/createOtherMetricValue.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createProportion.tsx to lib/NarrativeTextVis/chore/plugin/presets/createProportion.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createTimeDesc.tsx to lib/NarrativeTextVis/chore/plugin/presets/createTimeDesc.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/createTrendDesc.tsx to lib/NarrativeTextVis/chore/plugin/presets/createTrendDesc.js (with declaration)
event - Bundless src/NarrativeTextVis/chore/plugin/presets/index.ts to lib/NarrativeTextVis/chore/plugin/presets/index.js (with declaration)
event - Bundless src/NarrativeTextVis/constants.ts to lib/NarrativeTextVis/constants.js (with declaration)
event - Bundless src/NarrativeTextVis/index.ts to lib/NarrativeTextVis/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/getElementFontSize.ts to lib/NarrativeTextVis/line-charts/hooks/getElementFontSize.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/index.ts to lib/NarrativeTextVis/line-charts/hooks/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/hooks/useSvgWrapper.tsx to lib/NarrativeTextVis/line-charts/hooks/useSvgWrapper.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/index.ts to lib/NarrativeTextVis/line-charts/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/index.ts to lib/NarrativeTextVis/line-charts/line/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/scaleLinear.ts to lib/NarrativeTextVis/line-charts/line/scaleLinear.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/SingleLineChart.tsx to lib/NarrativeTextVis/line-charts/line/SingleLineChart.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/line/useLineCompute.ts to lib/NarrativeTextVis/line-charts/line/useLineCompute.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/getArcPath.ts to lib/NarrativeTextVis/line-charts/proportion/getArcPath.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/index.tsx to lib/NarrativeTextVis/line-charts/proportion/index.js (with declaration)
event - Bundless src/NarrativeTextVis/line-charts/proportion/ProportionChart.tsx to lib/NarrativeTextVis/line-charts/proportion/ProportionChart.js (with declaration)
event - Bundless src/NarrativeTextVis/NarrativeTextVis.tsx to lib/NarrativeTextVis/NarrativeTextVis.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Bullets.tsx to lib/NarrativeTextVis/paragraph/Bullets.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Heading.tsx to lib/NarrativeTextVis/paragraph/Heading.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/Headline.tsx to lib/NarrativeTextVis/paragraph/Headline.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/index.tsx to lib/NarrativeTextVis/paragraph/index.js (with declaration)
event - Bundless src/NarrativeTextVis/paragraph/TextLine.tsx to lib/NarrativeTextVis/paragraph/TextLine.js (with declaration)
event - Bundless src/NarrativeTextVis/phrases/index.tsx to lib/NarrativeTextVis/phrases/index.js (with declaration)
event - Bundless src/NarrativeTextVis/phrases/Phrase.tsx to lib/NarrativeTextVis/phrases/Phrase.js (with declaration)
event - Bundless src/NarrativeTextVis/section/index.tsx to lib/NarrativeTextVis/section/index.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/bullet.tsx to lib/NarrativeTextVis/styled/bullet.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/container.tsx to lib/NarrativeTextVis/styled/container.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/entity.tsx to lib/NarrativeTextVis/styled/entity.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/heading.tsx to lib/NarrativeTextVis/styled/heading.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/index.tsx to lib/NarrativeTextVis/styled/index.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/marks.tsx to lib/NarrativeTextVis/styled/marks.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/paragraph.tsx to lib/NarrativeTextVis/styled/paragraph.js (with declaration)
event - Bundless src/NarrativeTextVis/styled/phrase.tsx to lib/NarrativeTextVis/styled/phrase.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getFontSize.ts to lib/NarrativeTextVis/theme/getFontSize.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getLineHeight.ts to lib/NarrativeTextVis/theme/getLineHeight.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/getThemeColor.ts to lib/NarrativeTextVis/theme/getThemeColor.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/index.ts to lib/NarrativeTextVis/theme/index.js (with declaration)
event - Bundless src/NarrativeTextVis/theme/seed.ts to lib/NarrativeTextVis/theme/seed.js (with declaration)
event - Bundless src/NarrativeTextVis/types/enhance-spec.ts to lib/NarrativeTextVis/types/enhance-spec.js (with declaration)
event - Bundless src/NarrativeTextVis/types/index.ts to lib/NarrativeTextVis/types/index.js (with declaration)
event - Bundless src/NarrativeTextVis/types/props.ts to lib/NarrativeTextVis/types/props.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/functionalize.ts to lib/NarrativeTextVis/utils/functionalize.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/getCollapseProps.tsx to lib/NarrativeTextVis/utils/getCollapseProps.js (with declaration)
event - Bundless src/NarrativeTextVis/utils/index.ts to lib/NarrativeTextVis/utils/index.js (with declaration)
event - Bundless src/utils/classnames.ts to lib/utils/classnames.js (with declaration)
event - Bundless src/utils/getPrefixCls.ts to lib/utils/getPrefixCls.js (with declaration)
event - Bundless src/utils/index.ts to lib/utils/index.js (with declaration)
event - Generate declaration files...
event - Transformed successfully in 3141 ms (85 files)
两次构建结果对比如下: 序号 构建 esm 耗时 构建 cjs 耗时 文件数 总耗时
1 7898 2859 85 10757
2 4122 3141 85 7263

因为构建 cjs 时,已经使用了构建 esm 时产生的缓存,这里只对比构建 esm 的耗时,(4122-7898)/7898 = -47.81%,提升了将近 50%,大项目提升确实不少,构建使用的 father 版本是我本地把 dts 静态缓存加回来的版本,这样看用静态缓存加增量构建的方式也还行,之前在小项目里确实不明显,基于这个思路提的 pr:#649

innocces commented 1 year ago

蹲一个发布. 卡了这个问题

PeachScript commented 1 year ago

@innocces latest 已经回滚了,应该不影响;修复版这周发

PeachScript commented 1 year ago

v4.2.1 已发布,感谢 @Carrotzpc 的贡献 ❤️