1

why is babel so slow with includePolyfill: true

I have latest version of "ember-cli": "2.3.0" and "ember-cli-babel": "^5.1.5"

Build successful - 126129ms. Slowest Trees | Total ----------------------------------------------+--------------------- Babel | 38205ms JSHint app- QUnit | 36606ms Babel | 29282ms Slowest Trees (cumulative) | Total (avg) ----------------------------------------------+--------------------- Babel (14) | 77556ms (5539 ms) JSHint app- QUnit (1) | 36606ms 

without polyfill

Build successful - 6896ms. Slowest Trees | Total ----------------------------------------------+--------------------- Babel | 452ms Slowest Trees (cumulative) | Total (avg) ----------------------------------------------+--------------------- Babel (14) | 1797ms (128 ms) Funnel: Addon JS (9) | 555ms (61 ms) 
6
  • What platform are you building on? Commented Feb 19, 2016 at 21:36
  • Was the includePolyfill build the first build in the directory? What do the build times look like if you try turning includePolyfill: flase, delete the tmp and dist folders, and then rebuild? Commented Feb 19, 2016 at 21:40
  • Are this initial build times or rebuild times? Commented Feb 19, 2016 at 21:47
  • initial build with empty tmp and dist folder Commented Feb 19, 2016 at 22:39
  • if I use app.import('vendor/polyfill.min.js'); then everything is ok, if I use includePolyfill: true then all is awfully slow and node.js consumes lot of cpu Commented Feb 21, 2016 at 19:15

1 Answer 1

1

Babel is slower with 'includePolyfill' because it has to process the JS more than what it usually does!

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.