Nwb: Babel 6

Created on 5 Dec 2015  路  7Comments  路  Source: insin/nwb

Dependencies

  • [x] Publish development version of deduped-babel-presets to npm
  • [x] Update all dependencies to their Babel 6 versions

nwb

  • [x] Get nwb itself building and testing with Babel 6 using presets from deduped-babel-presets

User config

  • [x] Validate that babel.stage is either 0-3 or falsy when provided
  • [x] Warn if a babel.loose string is present in 0.12 config and treat it as its boolean equivalent
  • [x] Support a babel.runtime flag or string to include the transform runtime plugin

Babel config generation

Generate Babel 6 config using deduped-babel-config presets based on build and user config

  • [x] Support stage number user config as per Babel 5 and use it to choose presets.
  • [x] Support loose as boolean user config to use an ES2015 -loose config from deduped-babel-presets
  • [x] Support native boolean build config to to use an ES2015 -native config from deduped-babel-presets
  • [x] Support presets list of strings build config to to use additional named presets from deduped-babel-presets
  • [x] Support runtimeto use the runtime transform and choose which features to enable

Build config

  • [x] Configure Babel build config for React development builds
  • [x] Configure Babel build config for React production builds (taking --preact into account)
  • [X] Enable the 'react' preset by default for module and UMD builds for JSX transforms when needed (hashtag YOLO)
  • [x] Use generated Babel config with babel-loader when generating Webpack config
  • [x] Update Karma config generation to use babel-polyfill

Other

  • [x] Update tests
  • [x] Update docs

(Was: Waiting for https://github.com/gaearon/babel-plugin-react-transform/pull/50)

dependencies

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

All 7 comments

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loklaan picture loklaan  路  3Comments

brumm picture brumm  路  6Comments

pedrocostadev picture pedrocostadev  路  5Comments

clayrisser picture clayrisser  路  3Comments

sergiop picture sergiop  路  5Comments