You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently support pre-compilation of ES2015 using Babel in the main thread. This means the child processes don't pay the penalty of loading up Babel for every thread.
TypeScript and CoffeScript users can use require hooks (i.e. --require coffe-script/register), but then they pay that cost for every forked process (increased require times and memory usage).
We could allow other transforms to participate via some sort of plugin API. This would allow TypeScript and CoffeeScript users to realize the same speed increase and reduced memory footprint.
Custom plugins for other transforms would need to be developed. transform-chain is something I built with this in mind and could be helpful.
The decision we need to make is:
Should we do this?
Should we do it now or after 1.0.0?
What should the API / config look like.
The text was updated successfully, but these errors were encountered:
@jamestalmage In its current form, does --require transform test code, or only imports thereof? (i.e. does --require coffee-script/register allow me to write my tests in Coffeescript?)
We currently support pre-compilation of ES2015 using Babel in the main thread. This means the child processes don't pay the penalty of loading up Babel for every thread.
TypeScript
andCoffeScript
users can use require hooks (i.e.--require coffe-script/register
), but then they pay that cost for every forked process (increased require times and memory usage).We could allow other transforms to participate via some sort of plugin API. This would allow
TypeScript
andCoffeeScript
users to realize the same speed increase and reduced memory footprint.Custom plugins for other transforms would need to be developed.
transform-chain
is something I built with this in mind and could be helpful.The decision we need to make is:
The text was updated successfully, but these errors were encountered: