1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Remove redundant babelify (#9945)

This commit is contained in:
Etienne Dusseault 2020-12-03 12:23:02 +08:00 committed by GitHub
parent 97d268c8ee
commit dd3f728e82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,14 +333,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) {