Dependencies
nwb
User config
babel.stage is either 0-3 or falsy when providedbabel.loose string is present in 0.12 config and treat it as its boolean equivalentbabel.runtime flag or string to include the transform runtime pluginBabel config generation
Generate Babel 6 config using deduped-babel-config presets based on build and user config
stage number user config as per Babel 5 and use it to choose presets.loose as boolean user config to use an ES2015 -loose config from deduped-babel-presetsnative boolean build config to to use an ES2015 -native config from deduped-babel-presetspresets list of strings build config to to use additional named presets from deduped-babel-presetsruntimeto use the runtime transform and choose which features to enableBuild config
--preact into account)babel-loader when generating Webpack configbabel-polyfillOther
(Was: Waiting for https://github.com/gaearon/babel-plugin-react-transform/pull/50)
Reference commit from react-heatpack: https://github.com/insin/react-heatpack/commit/6108dbe409f6f7fd7dbf6d910f61d57d5cad007e
Reference for what we'll have to do behind the scenes to keep supporting Babel 5 style loose: 'all' config: https://github.com/bkonkle/babel-preset-es2015-loose/blob/master/index.js
@insin What about this article? http://www.2ality.com/2015/12/babel6-loose-mode.html
Here's the start of a potential solution for Babel 6's npm2 problem for nwb: https://github.com/insin/deduped-babel-presets
What's the progress on this issue? Is there something I can do to contribute?
Working on it in the next branch, using #31 as a reference, but haven't had time to create anything commit-worthy yet.
Implemented in 0.12.0
Most helpful comment
Here's the start of a potential solution for Babel 6's npm2 problem for nwb: https://github.com/insin/deduped-babel-presets