You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
It could be mentioned that to avoid loading 300 JS files in the browser, jspm 0.17(beta) can do a bundle for example of the following contents, separate from your application code:
@EisenbergEffect one approach that can work here (although isn't really a good idea) is to use jspm to create a build of the plugin (although that will then suck in all the parts of Babel itself that it needs).
@super2457 sorry to hear that. You can use @node/babel-plugin-x as the plugin name if you will only use the transpiler for bundling and not browser loading.
Activity
brownieboy commentedon Feb 25, 2016
+1 for seeing the "JSX for React" documentation.
I'm trying to use the SystemJS plugin-babel with React, but can't see how to configure it correctly. I'm not using JSPM, by the way, so is that even possible? This is as far as I got: https://github.com/brownieboy/react-systemjs-babelplugin-example
I managed to get it transpiling ES2015 (i.e. no React) here https://github.com/brownieboy/systemjs-babelplugin-example.
kuhe commentedon Mar 17, 2016
Regarding JSX & React,
It could be mentioned that to avoid loading 300 JS files in the browser, jspm 0.17(beta) can do a bundle for example of the following contents, separate from your application code:
But it needs to be imported with
<script charset="utf-8"></script>due to a particular RegExp.stoffeastrom commentedon Apr 9, 2016
+1 for custom plugins. For example how would I use the
transform-decorators-legacybabel plugin?kavi87 commentedon May 13, 2016
I'd love to know how to use the
transform-decorators-legacyplugin as well.guybedford commentedon May 15, 2016
It's worth using jspm for these cases (
jspm install npm:transform-decorators-legacy) then setting the plugins config as in https://github.com/systemjs/plugin-babel#custom-presets-and-transforms.EisenbergEffect commentedon Jun 28, 2016
@guybedford How would we add the transform-decorators-legacy plugin?
guybedford commentedon Jul 1, 2016
@EisenbergEffect this can be done via:
then adding to the configuration file:
EisenbergEffect commentedon Jul 1, 2016
I'm interested to see how I would set this up without using jspm.
guybedford commentedon Jul 1, 2016
@EisenbergEffect one approach that can work here (although isn't really a good idea) is to use jspm to create a build of the plugin (although that will then suck in all the parts of Babel itself that it needs).
So you can do:
And then change the babelOptions to reference that file to use decorators:
That build file can then work in non-jspm SystemJS projects.
FullStackForger commentedon Sep 2, 2016
Why would it suck in other parts of babel @guybedford?
super2457 commentedon Sep 17, 2016
I wasted a day here.
guybedford commentedon Sep 19, 2016
@super2457 sorry to hear that. You can use
@node/babel-plugin-xas the plugin name if you will only use the transpiler for bundling and not browser loading.