Skip to content

Commit

Permalink
Upgrade to Babel 7
Browse files Browse the repository at this point in the history
Closes #2926
  • Loading branch information
timdorr committed Sep 25, 2018
1 parent 3acb007 commit b9ee1cf
Show file tree
Hide file tree
Showing 5 changed files with 787 additions and 1,038 deletions.
32 changes: 0 additions & 32 deletions .babelrc

This file was deleted.

22 changes: 22 additions & 0 deletions .babelrc.js
@@ -0,0 +1,22 @@
const { NODE_ENV } = process.env

module.exports = {
presets: [
[
'@babel/env',
{
targets: {
browsers: ['ie >= 11']
},
exclude: ['transform-async-to-generator', 'transform-regenerator'],
modules: false,
loose: true
}
]
],
plugins: [
// don't use `loose` mode here - need to copy symbols when spreading
'@babel/proposal-object-rest-spread',
NODE_ENV === 'test' && '@babel/transform-modules-commonjs'
].filter(Boolean)
}

0 comments on commit b9ee1cf

Please sign in to comment.