mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Set NODE_ENV
when generating bundler (#4983)
This commit is contained in:
parent
3f4c389fde
commit
ea214945cf
@ -462,7 +462,9 @@ function generateBundler (opts, performBundle) {
|
||||
bundler.transform(envify({
|
||||
METAMASK_DEBUG: opts.devMode,
|
||||
NODE_ENV: opts.devMode ? 'development' : 'production',
|
||||
}))
|
||||
}), {
|
||||
global: true,
|
||||
})
|
||||
|
||||
if (opts.watch) {
|
||||
bundler = watchify(bundler)
|
||||
|
Loading…
Reference in New Issue
Block a user