systemjs / plugin-babel

SystemJS Babel Plugin
MIT License
83 stars 33 forks source link

Possible to change file extension #64

Closed JeffBaumgardt closed 8 years ago

JeffBaumgardt commented 8 years ago

Currently I have a very large project and running babel on everything is getting a bit slow. With my code being over 99% es5 I don't need babel to run on every js file. So I created a new mapping

'*.es': {
    'loader': 'plugin-babel',
    'format': 'cjs',
    'babelOptions': {
        'modularRuntime': false
    }
}

This makes it so I only need to transpile es files. But I need a way to also convert their extension to js as es is not a valid extension type. The babel cli allows for this but I do not know how to go about this in systemjs.