mirror of
https://github.com/developit/microbundle.git
synced 2026-01-18 13:56:35 +00:00
Don't inline NODE_ENV by default.
This commit is contained in:
parent
58705aa582
commit
3f6ba4c366
@ -315,11 +315,7 @@ function createConfig(options, entry, format, writeMeta) {
|
||||
globals = Object.assign(globals, parseMappingArgument(options.globals));
|
||||
}
|
||||
|
||||
const NODE_ENV = process.env.NODE_ENV || 'production';
|
||||
let defines = {
|
||||
NODE_ENV,
|
||||
'process.env.NODE_ENV': NODE_ENV
|
||||
};
|
||||
let defines = {};
|
||||
if (options.define) {
|
||||
defines = Object.assign(defines, parseMappingArgument(options.define));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user