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

Babel caching #118

Closed
sindresorhus opened this issue Nov 1, 2015 · 3 comments
Closed

Babel caching #118

sindresorhus opened this issue Nov 1, 2015 · 3 comments
Assignees
Labels
enhancement new functionality

Comments

@sindresorhus
Copy link
Member

Should be done after #117.

See: #103 (comment)

Compilation is a lot larger overhead than just reading in a cached file from disk. I do think we can do caching better than Babel itself, though. Mainly using separate cache files for each test file (Babel uses one large file) and a LRU cache.

@sindresorhus sindresorhus added the enhancement new functionality label Nov 1, 2015
@sindresorhus sindresorhus added this to the 0.4.0 milestone Nov 1, 2015
@sebmck
Copy link

sebmck commented Nov 5, 2015

Would be happy to have this in Babel core. Everything is fairly modularised internally so the only files you should need to touch are here and here.

@sindresorhus
Copy link
Member Author

@sebmck Oh cool. Are you ok with exposing the cache functionality? We're not using the require hook, so we need to be able to access the cache functionality from the Babel API.

@sindresorhus sindresorhus removed this from the 0.4.0 milestone Nov 7, 2015
@jamestalmage
Copy link
Contributor

Caching is in master. PR #352

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

No branches or pull requests

5 participants