Shopify / sprockets-commoner

Use Babel in Sprockets to compile JavaScript modules for the browser
MIT License
182 stars 22 forks source link

Performance #25

Open bouk opened 8 years ago

bouk commented 8 years ago

Compiling assets with commoner is pretty slow, let's make it faster

lemonmade commented 7 years ago

I'd also like to look at optimizing runtime performance of the compiled bundle — might be a different sprockets plugin, or a babel plugin we can throw in here, but as demonstrated here, putting parens around functions that we can reasonably assume to be invoked can lead to pretty shocking speed improvements. This tool gives a pretty good starting point for what we should look at, if it's not already being done.