Skip to content

ES6模块化支持 #100

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

Closed
kfeng0806 opened this issue Feb 4, 2019 · 2 comments
Closed

ES6模块化支持 #100

kfeng0806 opened this issue Feb 4, 2019 · 2 comments

Comments

@kfeng0806
Copy link

请问是否准备加入ES6的module export支持? 能通过模块引入就太棒了

@jabbany
Copy link
Owner

jabbany commented Feb 6, 2019

有的有的。
去年初开始有这个计划,但是一直很难实现。当时的模块目标是支持 AMD, UMD 和 CommonJS 可以用于 React 或者 Angular。不过当时 TS 的编译器很辣鸡,加上这个项目采用了大量TypeScript 早期的模块系统(不是基于 import 的),所以过渡一直很麻烦。

我打算参考一下这个:
https://medium.com/ag-grid/understand-packaging-for-javascript-typescript-commonjs-and-everything-else-1fe835f3243a

不过目前需要:

  • 把 CommentManager 和 Filter 之类的搬到 TypeScript
  • 把模块都从 TS 换成 ES6 import
  • 搞明白模板

@jabbany
Copy link
Owner

jabbany commented Jun 14, 2019

TS重构进程在 #103 进行管理~

@jabbany jabbany closed this as completed Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants