thgreasi / babel-plugin-system-import-transformer

import() & System.import() to UMD pattern transformer plugin for Babel
MIT License
72 stars 6 forks source link

only client side? #3

Closed mmahalwy closed 8 years ago

mmahalwy commented 8 years ago

Does this support server-side too?

thgreasi commented 8 years ago

I expect it to work wherever babel is used. If you use babel on your nodejs scripts, probably configured for CommonJS, then it will replace System.import() calls with promisefied require() calls. To be honest, for nodejs scripts I would prefer using es6 imports.

Thodoris Greasidis Computer, Networking & Communications Engineer

thgreasi commented 8 years ago

I will be more than happy to hear about your results/finding. Feel free to re-open on just simply comment.

mmahalwy commented 8 years ago

ended up using the commonjs method and having it be pushed to my babel register. thanks!