vazco / universe-modules

Use ES6 / ES2015 modules in Meteor with SystemJS
https://atmospherejs.com/universe/modules
MIT License
52 stars 7 forks source link

Is it possible to just add meteor's ecmascript package ? #20

Closed rwatts3 closed 9 years ago

rwatts3 commented 9 years ago

Is it possible to just add Meteor's ecmascript package. Just trying to learn the new ecmascript workflow, but would like to be on the bleeding edge from meteor.

MacRusher commented 9 years ago

What do you mean by "just add meteor's ecmascript package"?

If you're talking about adding it to the project of course you can do it. ecmascript package should not change behavior of universe:modules, because it modifies only *.js files and our modules affect *.import.js(x). But I haven't tested it yet.

Under the hood both packages uses the same babel-compiler package, except we add additional support for modules.

rwatts3 commented 9 years ago

Very nice,

Thank you for the fast reply. Yes I was just concerned that if I follow tutorials and use their ecmascript package if it would alter any expected behavior in modules.


On that note. I really like this approach to development and will be working with it. I like the material-ui vs. ReactBootstrap approach, do you have instructions or documentation to convert this package Material UI to use the modular approach with imports and exports ?

MacRusher commented 9 years ago

do you have instructions or documentation to convert this package Material UI to use the modular approach with imports and exports ?

From my experience biggest problem with MUI in Meteor right now is browserify. You can get few instances of React and MUI theme manager goes nuts, so look out for that.

This package you mentioned exports MUI global variable anyway so you can use it directly or assign it in some file as an export to use it "modular way". Not very clean but I don't have better idea right now, at least not without writing new MUI package for Meteor.