From 882e30e5cefa6a12b2998750228943aaddc2cb7b Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Wed, 9 Dec 2020 01:40:13 -0330 Subject: [PATCH] Revert "Revert "Remove redundant babelify (#9945)"" This reverts commit 7696de2e4e217231c197639035890d3d1dd96136. --- development/build/scripts.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/development/build/scripts.js b/development/build/scripts.js index d1a2559a0..52bedaf32 100644 --- a/development/build/scripts.js +++ b/development/build/scripts.js @@ -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) {