diff options
Diffstat (limited to 'babel.config.js')
-rw-r--r-- | babel.config.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 000000000..173ebc41a --- /dev/null +++ b/babel.config.js @@ -0,0 +1,24 @@ +module.exports = function (api) { + api.cache(false) + return { + presets: [ + [ + '@babel/preset-env', + { + targets: { + browsers: [ + 'chrome >= 58', + 'firefox >= 60', + ], + }, + }, + ], + '@babel/preset-react', + ], + plugins: [ + '@babel/plugin-transform-runtime', + '@babel/plugin-proposal-class-properties', + '@babel/plugin-proposal-object-rest-spread', + ], + } +} |