@umijs/preset-umi 4.0.37 → 4.0.38
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/commands/dev/dev.js +9 -15
- package/package.json +12 -12
package/dist/commands/dev/dev.js
CHANGED
|
@@ -327,24 +327,18 @@ PORT=8888 umi dev
|
|
|
327
327
|
memo.ip = import_utils.address.ip();
|
|
328
328
|
return memo;
|
|
329
329
|
});
|
|
330
|
-
const restartServer = () => {
|
|
331
|
-
var _a;
|
|
332
|
-
import_utils.logger.info(`Restart dev server with port ${api.appData.port}...`);
|
|
333
|
-
(0, import_watch.unwatch)();
|
|
334
|
-
(_a = process.send) == null ? void 0 : _a.call(process, {
|
|
335
|
-
type: "RESTART",
|
|
336
|
-
payload: {
|
|
337
|
-
port: api.appData.port
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
};
|
|
341
|
-
process.on("UMI_RESTART_SERVER", () => {
|
|
342
|
-
restartServer();
|
|
343
|
-
});
|
|
344
330
|
api.registerMethod({
|
|
345
331
|
name: "restartServer",
|
|
346
332
|
fn() {
|
|
347
|
-
|
|
333
|
+
var _a;
|
|
334
|
+
import_utils.logger.info(`Restart dev server with port ${api.appData.port}...`);
|
|
335
|
+
(0, import_watch.unwatch)();
|
|
336
|
+
(_a = process.send) == null ? void 0 : _a.call(process, {
|
|
337
|
+
type: "RESTART",
|
|
338
|
+
payload: {
|
|
339
|
+
port: api.appData.port
|
|
340
|
+
}
|
|
341
|
+
});
|
|
348
342
|
}
|
|
349
343
|
});
|
|
350
344
|
api.modifyViteConfig((viteConfig) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/preset-umi",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.38",
|
|
4
4
|
"description": "@umijs/preset-umi",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/preset-umi#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
"test": "umi-scripts jest-turbo"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@umijs/ast": "4.0.
|
|
29
|
-
"@umijs/babel-preset-umi": "4.0.
|
|
30
|
-
"@umijs/bundler-utils": "4.0.
|
|
31
|
-
"@umijs/bundler-vite": "4.0.
|
|
32
|
-
"@umijs/bundler-webpack": "4.0.
|
|
33
|
-
"@umijs/core": "4.0.
|
|
28
|
+
"@umijs/ast": "4.0.38",
|
|
29
|
+
"@umijs/babel-preset-umi": "4.0.38",
|
|
30
|
+
"@umijs/bundler-utils": "4.0.38",
|
|
31
|
+
"@umijs/bundler-vite": "4.0.38",
|
|
32
|
+
"@umijs/bundler-webpack": "4.0.38",
|
|
33
|
+
"@umijs/core": "4.0.38",
|
|
34
34
|
"@umijs/did-you-know": "^1.0.0",
|
|
35
35
|
"@umijs/history": "5.3.1",
|
|
36
|
-
"@umijs/mfsu": "4.0.
|
|
37
|
-
"@umijs/plugin-run": "4.0.
|
|
38
|
-
"@umijs/renderer-react": "4.0.
|
|
39
|
-
"@umijs/server": "4.0.
|
|
40
|
-
"@umijs/utils": "4.0.
|
|
36
|
+
"@umijs/mfsu": "4.0.38",
|
|
37
|
+
"@umijs/plugin-run": "4.0.38",
|
|
38
|
+
"@umijs/renderer-react": "4.0.38",
|
|
39
|
+
"@umijs/server": "4.0.38",
|
|
40
|
+
"@umijs/utils": "4.0.38",
|
|
41
41
|
"babel-plugin-dynamic-import-node": "2.3.3",
|
|
42
42
|
"click-to-react-component": "^1.0.8",
|
|
43
43
|
"core-js": "3.22.4",
|