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

Question: Populating the streamline cache with _node -c / detecting existing already-transpiled code during require() #384

Open
Maciek416 opened this issue Mar 3, 2021 · 0 comments

Comments

@Maciek416
Copy link

Some questions about transpilation and caching:

Given both of the following cases:

  • require("xyz/abc._js")
  • require("xyz/abc")

Does streamline first check to see if a transpiled version, i.e. xyz/abc.js, already exists before attempting to load or transpile the ._js version? In other words, does running through the _node -c <filename> for every file in my codebase effectively "warm up the streamline cache"?

Alternatively, is there a way to "warm up" streamline's own transpilation cache using _node -c or a similar process?

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

No branches or pull requests

1 participant