Max Murphy
Max Murphy

Reputation: 1973

Speed up slow meteor.js build times

The time it takes to bundle even the trivial, hundred line, demo apps in Meteor is about twenty five seconds. This seems very slow to me. Is there a way of speeding this up quite drastically?

I'm a newbie to Meteor. It was pointed out to me as I was looking for a way of speeding up development and indeed getting changes out live is great but the code and test cycle is much slower than I'm used to. There is only so much coffee I can drink whilst waiting. :-)

I'm running on a Macbook Pro, i7, 8G RAM or a quad core Xeon server (8 with hyperthreading). The run times are similar. No shortage of umph there!

Upvotes: 6

Views: 2788

Answers (2)

Cristo Rabani
Cristo Rabani

Reputation: 147

If you are using ecmascript and jsx packages you can replace them with universe:ecmascript.

It should help in meteor 1.2, because universe:ecmascript uses new cache compiler instead babel cache. Difference is in storing cache files (babel use only disk and cache compiler additionally uses ram cache.)

Upvotes: 1

David Weldon
David Weldon

Reputation: 64312

Yes it takes a while, but you should only be bundling when you are ready to push your changes to a production environment. When developing your app you should just run meteor from your app's root directory, and open your browser to http://localhost:3000. In development mode, any changes your make to your code will be immediately reflected in your browser.

Upvotes: 3

Related Questions