Skip to content

Commit

Permalink
Clean up babel configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterp committed Sep 9, 2019
1 parent 243aba4 commit 9c68dab
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
17 changes: 2 additions & 15 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
module.exports = {
presets: [
'@babel/preset-react',
[
'@babel/preset-env',
// It is important to note that @babel/preset-env does not support stage-x plugins
{
targets: {
node: '10',
},
useBuiltIns: 'usage',
corejs: 3,
},
],
],
presets: ['@babel/preset-react'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
['@babel/plugin-proposal-export-default-from'],
['@babel/plugin-proposal-object-rest-spread'],
],
ignore: ['**/*.test.js'],
};
}
10 changes: 10 additions & 0 deletions packages/hammer-cli/.babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{
"extends": "../../babel.config.js",
"plugins": [
[
"@babel/preset-env",
{
"targets": {
"node": "8.10.0"
},
"useBuiltIns": "usage",
"corejs": 3
}
],
[
"babel-plugin-module-resolver",
{
Expand Down

0 comments on commit 9c68dab

Please sign in to comment.