Open
Description
V2.0 将在 next 分支开发
Features:
- 升级 Rollup V4 以及相关依赖 feat: upgrade rollup to v4 #664
- 支持监听配置文件然后自动重启构建服务
- 支持并行编译
- 优化 transform/bundle 性能
- 实验性接入 Rolldown
- 插件支持直接传入对象
- 将类型声明分离出来,作为独立的构建任务 feat: add individual declaration task #666
- 将
declaration
作为配置项,支持boolean | DeclarationUserConfig
,向前兼容true
、false
。 - 统一产出到
typings
目录下。 - 支持配置生成引擎,包括但不限于 tsc、api-extractor、oxc-transform
- 将
- monorepo 的 watch 能力 #324 更好的 Monorepo 支持
- 全新的 format 能力。新增
module:language
语法支持同时设置模块和语言,例如esm:es2017
。支持插件设置自定义的 format,避免插件魔改现有 format 的产物和结果 feat: support custom format #671 -
bundle.externals
支持 RegExp 和 string 配置 feat: external support RegExp and not external sub path of package #673 - 支持配置 inline @swc/helpers,方便更多场景使用
- 支持选择特定任务启动,例如只启动 transform 或者 bundle 中的某个 formats
- 更好的多系统支持,例如 Windows
Break Change:
- Bundle 模式
- 默认开启
browser
- 默认关闭
polyfill
- 删除
development
- es5 构建模式下,默认会编译全部依赖文件
- externals 不再处理子包,需要显示声明 feat: external support RegExp and not external sub path of package #673
- 默认开启
- 不再针对
@swc/helpers
单独转换一个 cjs 的版本 feat: remove transform swc helpers to cjs is not necessary #674
Test:
- 提供完备的测试,优化 map 可能不一致的问题
其他 issue 可以查看 v2.0 milestone
Metadata
Metadata
Assignees
Labels
No labels