We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86731cc commit a662f90Copy full SHA for a662f90
1 file changed
src/Bundler.js
@@ -318,11 +318,14 @@ class Bundler extends EventEmitter {
318
}
319
320
await this.loadPlugins();
321
- await loadEnv(Path.join(this.options.rootDir, 'index'));
+
322
+ if (!this.options.env) {
323
+ await loadEnv(Path.join(this.options.rootDir, 'index'));
324
+ this.options.env = process.env;
325
+ }
326
327
this.options.extensions = Object.assign({}, this.parser.extensions);
328
this.options.bundleLoaders = this.bundleLoaders;
- this.options.env = process.env;
329
330
if (this.options.watch) {
331
this.watcher = new Watcher();
0 commit comments