diff options
author | Mark Stacey <markjstacey@gmail.com> | 2019-08-02 23:47:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-02 23:47:20 +0800 |
commit | 6a0dbcdb31e4c49737578cce4034ab2fcf906e2e (patch) | |
tree | 6adb05d98f7209b6044f3175bc648fef05c86735 /babel.config.js | |
parent | a6d4725e5c946e66f1f79afdc80563b807500104 (diff) | |
download | tangerine-wallet-browser-6a0dbcdb31e4c49737578cce4034ab2fcf906e2e.tar.gz tangerine-wallet-browser-6a0dbcdb31e4c49737578cce4034ab2fcf906e2e.tar.zst tangerine-wallet-browser-6a0dbcdb31e4c49737578cce4034ab2fcf906e2e.zip |
Upgrade to Babel 7 (#6942)
Babel 7 moved to a new configuration format, and they've scoped all of
their packages under `@babel/`. This brings MetaMask in-line with
dependencies we use that _already_ use Babel 7, and it eliminates a
few unfortunate edge cases that can prevent dependencies from being
correctly transpiled.
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', + ], + } +} |