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

Alternative approach to Babel transpilation #1052

Closed
novemberborn opened this issue Sep 25, 2016 · 1 comment
Closed

Alternative approach to Babel transpilation #1052

novemberborn opened this issue Sep 25, 2016 · 1 comment
Labels

Comments

@novemberborn
Copy link
Member

I've been experimenting with creating a binary cache (#594) of the babel-core dependency: https://github.com/novemberborn/cached-module-loader. On my machine this leads to a 3x improvement in loading babel-core.

I think this would allow us to do Babel transpilation in the test workers themselves, including transpiling helpers (#720) and creating a faster babel-register without precompilation (#945).

I suspect it'll be easier to swap out the Babel transpiler for a TypeScript one, or make other customizations, if we can load it in the test workers rather than the main process. Performance on older Node.js versions (including v4) may not be as good as it is currently, however (#1051).

Curious to hear people's thought on this approach. Happy to provide more detail.

@vadimdemedes
Copy link
Contributor

I think this would allow us to do Babel transpilation in the test workers themselves

This would be just awesome!

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

No branches or pull requests

2 participants