@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.
- package/dist/config/config.js +1 -1
- package/dist/service/plugin.js +4 -2
- package/package.json +3 -3
package/dist/config/config.js
CHANGED
package/dist/service/plugin.js
CHANGED
|
@@ -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.
|
|
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.
|
|
25
|
-
"@umijs/utils": "4.0.
|
|
24
|
+
"@umijs/bundler-utils": "4.0.42",
|
|
25
|
+
"@umijs/utils": "4.0.42"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"dotenv": "16.0.0",
|