Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何配置编译出es6,而不是es5 #4041

Closed
luckalphie opened this issue Aug 1, 2019 · 8 comments
Closed

如何配置编译出es6,而不是es5 #4041

luckalphie opened this issue Aug 1, 2019 · 8 comments
Labels
enhancement New feature or request

Comments

@luckalphie
Copy link
Contributor

因为编译小程序代码,需要调试,es5的代码太难看,而且本身小程序也支持es6

@taro-bot
Copy link

taro-bot bot commented Aug 1, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@luckyadam
Copy link
Member

暂时还支持不了~ 关于调试的话,目前 es5 的代码勉强能看吧 😂

@luckyadam luckyadam added the enhancement New feature or request label Aug 1, 2019
@luckalphie
Copy link
Contributor Author

请问
1、有没有考虑支持?
2、现在不支持的话,能不能给小程序编译输出sourceMap

@Garfield550
Copy link
Collaborator

我相信以后都会支持的

@lbb00
Copy link

lbb00 commented Aug 2, 2019

+1

@umaim
Copy link
Contributor

umaim commented Aug 2, 2019

ES6 顺便还能让体积更小点儿 233

@fanyinghao
Copy link

询问下进度

@Chen-jj
Copy link
Contributor

Chen-jj commented Jul 2, 2020

Taro3 能支持 source-map,也能自己调整 babel 配置 preset-env 的 target 控制编译产物

@Chen-jj Chen-jj closed this as completed Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants