Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Update to Babel 7 #845

Merged
merged 2 commits into from
May 7, 2018
Merged

Update to Babel 7 #845

merged 2 commits into from
May 7, 2018

Commits on May 6, 2018

  1. Update to Babel 7

    Notable changes:
    * All official packages have moved under the `@babel/` namespace and in
      some cases further renamed, so package names adjusted accordingly.
    * `@babel/preset-env` now includes `@babel/plugin-transform-spread` and
      `@babel/plugin-transform-classes`, which are the Babel 7 renames of
      `babel-plugin-transform-object-rest-spread` and
      `babel-plugin-transform-es2015-classes`.
    * `@babel/preset-env`'s `useBuiltIns: true` mode has been renamed to
      `useBuiltIns: 'entry'` - which is equivalent.
    * `@babel/preset-react` now has `development` and `useBuiltIns` options,
      which we set appropriately:
      https://github.com/babel/babel/tree/v7.0.0-beta.46/packages/babel-preset-react#options
    * `babel-plugin-dynamic-import-node` is no longer required by
      `@neutrinojs/library` for target `node`, since webpack converts the
      dynamic import to a require itself.
    * `@neutrinojs/jest` required more substantial changes since:
      - the custom transformer used the now removed `canCompile()` from
        Babel's API.
      - `babel-preset-jest` is not fully compatible with Babel 7
        (jestjs/jest#6126).
    * Several packages now have a peer dependency on `@babel/core`, so it's
      been added where necessary.
    * `babel-loader` has been updated to v8 for Babel 7 compatibility.
    * `@neutrinojs/vue`'s `babel-preset-vue` dependency doesn't appear to
      be used, but has been left as is pending #836.
    
    Closes #316.
    edmorley committed May 6, 2018
    Configuration menu
    Copy the full SHA
    52a0f48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    97c350d View commit details
    Browse the repository at this point in the history