Skip to content

Use @babel/plugin-transform-runtime to prevent babel from generating dupe helper functions #4284

Closed
@CarterLi

Description

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

antdv 显式关闭了 @babel/plugin-transform-runtime 的使用

导致生成的dist包中出现大量重复的helper代码,光对象扩展运算符的helper函数就生成了200多次

image

建议打开 helpers: true,减少helper函数的生成,可以显著减少dist代码的体积,增加可读性

What does the proposed API look like?

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions