felixge / node-sandboxed-module

A sandboxed node.js module loader that lets you inject dependencies into your modules.
MIT License
342 stars 42 forks source link

Add Babel to collection of built-in transformers #53

Closed tejasmanohar closed 9 years ago

tejasmanohar commented 9 years ago

Since using ES6/7 features/proposals is so popular nowadays, might as well add Babel as a built-in transformer here, eh?

Take a look, and let me know what you think! Thanks.

tejasmanohar commented 9 years ago

Also, I decided to use the 'use latest' statement instead of basing ES6/7 off of the filename like the Coffeescript generator does since that's what I've seen most... in webtask, generators, etc.

domenic commented 9 years ago

Thanks, but I don't think we should support one particular ES-future transpiler. And definitely not via nonstandard pragmas.

If you want to publish your own npm package for the source transformer we'd be happy to accept a PR linking to it from the readme.

tejasmanohar commented 9 years ago

yeah, that's fair! I'll do so :smile: