@umijs/core 4.0.14 → 4.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,7 +186,6 @@ var Service = class {
186
186
  this.pkgPath = pkgPath || (0, import_path.join)(this.cwd, "package.json");
187
187
  const prefix = this.opts.frameworkName || import_constants.DEFAULT_FRAMEWORK_NAME;
188
188
  const specifiedEnv = process.env[`${prefix}_ENV`.toUpperCase()];
189
- (0, import_assert.default)(!specifiedEnv || specifiedEnv && !Object.values(import_constants.SHORT_ENV).includes(specifiedEnv), `${import_utils.chalk.yellow(Object.values(import_constants.SHORT_ENV).join(", "))} config files will be auto loaded by env, Do not configure ${import_utils.chalk.cyan(`process.env.${prefix}_ENV`)} with these values`);
190
189
  const configManager = new import_config.Config({
191
190
  cwd: this.cwd,
192
191
  env: this.env,
@@ -285,7 +284,7 @@ var Service = class {
285
284
  });
286
285
  const defaultConfig = await this.applyPlugins({
287
286
  key: "modifyDefaultConfig",
288
- initialValue: this.configDefaults
287
+ initialValue: import_utils.lodash.cloneDeep(this.configDefaults)
289
288
  });
290
289
  this.config = import_utils.lodash.merge(defaultConfig, config);
291
290
  return { config, defaultConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/core",
3
- "version": "4.0.14",
3
+ "version": "4.0.17",
4
4
  "homepage": "https://github.com/umijs/umi/tree/master/packages/core#readme",
5
5
  "bugs": "https://github.com/umijs/umi/issues",
6
6
  "repository": {
@@ -21,8 +21,8 @@
21
21
  "test": "umi-scripts jest-turbo"
22
22
  },
23
23
  "dependencies": {
24
- "@umijs/bundler-utils": "4.0.14",
25
- "@umijs/utils": "4.0.14"
24
+ "@umijs/bundler-utils": "4.0.17",
25
+ "@umijs/utils": "4.0.17"
26
26
  },
27
27
  "devDependencies": {
28
28
  "dotenv": "16.0.0",