@umijs/core 4.0.40 → 4.0.42

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.
@@ -91,7 +91,7 @@ var Config = class {
91
91
  event,
92
92
  path
93
93
  }).catch((e) => {
94
- throw new Error(e);
94
+ throw e;
95
95
  });
96
96
  }, import_constants.WATCH_DEBOUNCE_STEP));
97
97
  return () => watcher.close();
@@ -63,7 +63,7 @@ var Plugin = class {
63
63
  try {
64
64
  ret = require(this.path);
65
65
  } catch (e) {
66
- throw new Error(`Register ${this.type} ${this.path} failed, since ${e.message}`);
66
+ throw new Error(`Register ${this.type} ${this.path} failed, since ${e.message}`, { cause: e });
67
67
  } finally {
68
68
  import_utils.register.restore();
69
69
  }
@@ -124,7 +124,9 @@ var Plugin = class {
124
124
  extensions: [".tsx", ".ts", ".mjs", ".jsx", ".js"]
125
125
  });
126
126
  } catch (_e) {
127
- throw new Error(`Invalid plugin ${path}, can not be resolved.`);
127
+ throw new Error(`Invalid plugin ${path}, can not be resolved.`, {
128
+ cause: _e
129
+ });
128
130
  }
129
131
  return new Plugin({
130
132
  path: resolved,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/core",
3
- "version": "4.0.40",
3
+ "version": "4.0.42",
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.40",
25
- "@umijs/utils": "4.0.40"
24
+ "@umijs/bundler-utils": "4.0.42",
25
+ "@umijs/utils": "4.0.42"
26
26
  },
27
27
  "devDependencies": {
28
28
  "dotenv": "16.0.0",