These are chat archives for systemjs/systemjs

17th
Apr 2015
carlosagsmendes
@carlosagsmendes
Apr 17 2015 19:23
I don't know what I'm doing wrong but all the core-js dependencies are being loaded one by one in the browser. Suddenly I have 200+ requests. I'm using babel. Any idea? !(img)[http://content.screencast.com/users/carlos.mendes/folders/Jing/media/1f96d80e-a92f-47f4-b371-c19c59f06864/2015-04-17_2019.png]
Nelo Mitranim
@Mitranim
Apr 17 2015 19:30
@carlosagsmendes This means systemjs detected non-es5 files and imported babel to transpile them in the browser
At least that's what I typically saw
carlosagsmendes
@carlosagsmendes
Apr 17 2015 19:30
Yes, this is happening in my dev environment and we transpile in the browser
Nelo Mitranim
@Mitranim
Apr 17 2015 19:31
It slows down your development process, make sure to transpile before importing to browser
carlosagsmendes
@carlosagsmendes
Apr 17 2015 19:31
But it used to get the babel browser fiel
file
it was acceptable
now it is getting babel files 1 by 1
Nelo Mitranim
@Mitranim
Apr 17 2015 19:32
maybe it detected that you're using es6/7 features that can't be simply transpiled and require the corejs runtime to support them? I'm not sure
carlosagsmendes
@carlosagsmendes
Apr 17 2015 19:36
I included the browser.js manually but it still gets all the dependencies
found this
carlosagsmendes
@carlosagsmendes
Apr 17 2015 19:46
no luck
carlosagsmendes
@carlosagsmendes
Apr 17 2015 20:05
"babelOptions": {
"optional": [
"runtime"
]
},
I removed the runtime from babel config and now it doesn't load the dependencies as modules anymore
does anyone know why is this enabled in the config, by default?
Guy Bedford
@guybedford
Apr 17 2015 20:48
@carlosagsmendes the Babel runtime is loaded as separate modules as that allows bundles to just contain the necessary runtime functions
carlosagsmendes
@carlosagsmendes
Apr 17 2015 21:28
So in my case @guybedford, since I'm transpiling in the browser it is ok to remove the runtime option from babelOptions to avoid all the individual modules?
Will Prater
@wprater
Apr 17 2015 23:19
where is the babel.js that’s needed for system js? I cant seem to figure out which package to download. and we cant use any dependency managers, and Its making it hard for me to track down which file to use ? haha
Will Prater
@wprater
Apr 17 2015 23:26
I dont understand this line.. I cannot seem to find where babel.js is in the babel src repo "For use with Babel, locate the browser.js file at babel.js"
Will Prater
@wprater
Apr 17 2015 23:59
looks like its just the browser.js file.