Skip to content

Commit

Permalink
babel: Switch to static config to enable caching (#2359)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored Jan 18, 2020
1 parent c54e141 commit c429e28
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
27 changes: 27 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }]],
"plugins": [
"./resources/inline-invariant",
"@babel/plugin-transform-flow-strip-types"
],
"overrides": [
{
"exclude": ["**/__tests__/**/*", "**/__fixtures__/**/*"],
"presets": ["@babel/preset-env"],
"plugins": [
["@babel/plugin-transform-classes", { "loose": true }],
["@babel/plugin-transform-destructuring", { "loose": true }],
["@babel/plugin-transform-spread", { "loose": true }],
["@babel/plugin-transform-for-of", { "assumeArray": true }]
],
"env": {
"cjs": {
"presets": [["@babel/preset-env", { "modules": "commonjs" }]]
},
"mjs": {
"presets": [["@babel/preset-env", { "modules": false }]]
}
}
}
]
}
27 changes: 0 additions & 27 deletions .babelrc.js

This file was deleted.

0 comments on commit c429e28

Please sign in to comment.