I'm playing with System.import() and ES6, and now I got something like this:
<script type="text/javascript" src="http://project.loc.com/Public/Js/Common/Babel.js"></script>
<script type="text/javascript" src="http://project.loc.com/Public/Js/Common/ES6ModuleLoader.js"></script>
<script>
System.transpiler = 'babel';
System.baseUrl = 'http://project.loc.com/';
</script>
When I'm importing an ES6 file, it all goes well, but when I first want to load jQuery, like this:
System.import('Public/Js/Common/jQuery');
I get an error:
[BABEL] Note: The code generator has deoptimised the styling of "http://project.loc.com/Public/Js/Common/jQuery.js" as it exceeds the max of "100KB".
So It looks like Babel is trying to process this file but it shouldn't since it's not an ES6 file.
Not sure, maybe I'm using the wrong approach.
Any help would be appreciated!
Thank you :)