Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel 6 #12

Closed
18 tasks done
insin opened this issue Dec 5, 2015 · 7 comments
Closed
18 tasks done

Babel 6 #12

insin opened this issue Dec 5, 2015 · 7 comments

Comments

@insin
Copy link
Owner

insin commented Dec 5, 2015

Dependencies

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

nwb

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

User config

  • Validate that babel.stage is either 0-3 or falsy when provided
  • Warn if a babel.loose string is present in 0.12 config and treat it as its boolean equivalent
  • 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

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

Build config

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

Other

  • Update tests
  • Update docs

(Was: Waiting for gaearon/babel-plugin-react-transform#50)

@insin
Copy link
Owner Author

insin commented Dec 20, 2015

Reference commit from react-heatpack: insin/react-heatpack@6108dbe

@insin
Copy link
Owner Author

insin commented Jan 5, 2016

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

@DenysStoianov
Copy link

@insin What about this article? http://www.2ality.com/2015/12/babel6-loose-mode.html

@insin
Copy link
Owner Author

insin commented May 17, 2016

Here's the start of a potential solution for Babel 6's npm2 problem for nwb: https://github.com/insin/deduped-babel-presets

@insin insin mentioned this issue Jun 10, 2016
10 tasks
@TimonVS
Copy link

TimonVS commented Jul 6, 2016

What's the progress on this issue? Is there something I can do to contribute?

@insin
Copy link
Owner Author

insin commented Jul 6, 2016

Working on it in the next branch, using #31 as a reference, but haven't had time to create anything commit-worthy yet.

@insin insin self-assigned this Jul 16, 2016
@insin insin removed their assignment Jul 27, 2016
@insin
Copy link
Owner Author

insin commented Aug 16, 2016

Implemented in 0.12.0

@insin insin closed this as completed Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants