mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Revert "Remove redundant babelify (#9945)"
This reverts commit dd3f728e82af160781e1e6c1cb424f6e09659f41.
This commit is contained in:
parent
d783966065
commit
7696de2e4e
@ -326,6 +326,14 @@ function createScriptTasks({ browserPlatforms, livereload }) {
|
|||||||
|
|
||||||
let bundler = browserify(browserifyOpts)
|
let bundler = browserify(browserifyOpts)
|
||||||
.transform('babelify')
|
.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')
|
.transform('brfs')
|
||||||
|
|
||||||
if (opts.buildLib) {
|
if (opts.buildLib) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user