1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Revert "Revert "Remove redundant babelify (#9945)""

This reverts commit 7696de2e4e.
This commit is contained in:
Mark Stacey 2020-12-09 01:40:13 -03:30
parent 1a3d3b46e7
commit 882e30e5ce

View File

@ -326,14 +326,6 @@ function createScriptTasks({ browserPlatforms, livereload }) {
let bundler = browserify(browserifyOpts)
.transform('babelify')
// Transpile any dependencies using the object spread/rest operator
// because it is incompatible with `esprima`, which is used by `envify`
// See https://github.com/jquery/esprima/issues/1927
.transform('babelify', {
only: ['./**/node_modules/libp2p'],
global: true,
plugins: ['@babel/plugin-proposal-object-rest-spread'],
})
.transform('brfs')
if (opts.buildLib) {