Skip to content

Commit

Permalink
upgrade to babel 7, upgrade gulp-babel & babel-loader to work with ba…
Browse files Browse the repository at this point in the history
…bel 7
  • Loading branch information
that1matt committed Oct 19, 2018
1 parent f133e48 commit 6e38a73
Show file tree
Hide file tree
Showing 5 changed files with 3,726 additions and 7,333 deletions.
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

34 changes: 34 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 1,34 @@
module.exports = function (api) {
// const env = api.env()
// api.cache.using(() => process.env.NODE_ENV === 'development')
api.cache.never();

return {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
// Stage 0
'@babel/plugin-proposal-function-bind',

// Stage 1
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-logical-assignment-operators',
['@babel/plugin-proposal-optional-chaining', { loose: false }],
['@babel/plugin-proposal-pipeline-operator', { proposal: 'minimal' }],
['@babel/plugin-proposal-nullish-coalescing-operator', { loose: false }],
'@babel/plugin-proposal-do-expressions',

// Stage 2
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-proposal-function-sent',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-numeric-separator',
'@babel/plugin-proposal-throw-expressions',

// Stage 3
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
['@babel/plugin-proposal-class-properties', { loose: false }],
'@babel/plugin-proposal-json-strings',
],
};
};
Loading

0 comments on commit 6e38a73

Please sign in to comment.