Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

[feature request] 是否能支持 es5 语法的打包? #54

Closed
moecasts opened this issue Jul 27, 2022 · 3 comments
Closed

[feature request] 是否能支持 es5 语法的打包? #54

moecasts opened this issue Jul 27, 2022 · 3 comments

Comments

@moecasts
Copy link

如题,有些包希望在只支持 es5 的环境下也能使用。

@fz6m
Copy link

fz6m commented Jul 28, 2022

使用 babel transformer 可以的。

@moecasts moecasts changed the title [feature request] 是否能支持 es5 语法的大包? [feature request] 是否能支持 es5 语法的打包? Jul 29, 2022
@moecasts
Copy link
Author

使用 babel transformer 可以的。

支持 swc 的吗?

@PeachScript
Copy link
Member

PeachScript commented Jul 29, 2022

目前不支持 swc,在后续计划里,ref: #5

有兴趣也可以一起共建,可参考其他 transformer 实现 swc:https://github.com/umijs/father-next/tree/master/src/builder/bundless/loaders/javascript

issue 先关闭了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants