@umijs/preset-umi 4.0.89 → 4.1.0

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.
@@ -48,7 +48,9 @@ COMPRESS=none umi build
48
48
  umi build --clean
49
49
  `,
50
50
  fn: async function() {
51
- import_utils.logger.info(import_utils.chalk.cyan.bold(`Umi v${api.appData.umi.version}`));
51
+ import_utils.logger.info(
52
+ import_utils.chalk.cyan.bold(`${api.appData.umi.name} v${api.appData.umi.version}`)
53
+ );
52
54
  import_utils.rimraf.sync(api.paths.absTmpPath);
53
55
  await api.applyPlugins({
54
56
  key: "onCheckPkgJSON",
@@ -71,7 +71,9 @@ PORT=8888 umi dev
71
71
  `,
72
72
  async fn() {
73
73
  var _a, _b, _c, _d, _e;
74
- import_utils.logger.info(import_utils.chalk.cyan.bold(`Umi v${api.appData.umi.version}`));
74
+ import_utils.logger.info(
75
+ import_utils.chalk.cyan.bold(`${api.appData.umi.name} v${api.appData.umi.version}`)
76
+ );
75
77
  const enableVite = !!api.config.vite;
76
78
  import_utils.rimraf.sync(api.paths.absTmpPath);
77
79
  await api.applyPlugins({
@@ -52,7 +52,9 @@ var MFSUUtilBase = class {
52
52
  async prepare() {
53
53
  var _a, _b, _c, _d;
54
54
  const api = this.api;
55
- import_utils.logger.info(import_utils.chalk.cyan.bold(`Umi v${api.appData.umi.version}`));
55
+ import_utils.logger.info(
56
+ import_utils.chalk.cyan.bold(`${api.appData.umi.name} v${api.appData.umi.version}`)
57
+ );
56
58
  import_utils.rimraf.sync(api.paths.absTmpPath);
57
59
  const generate = async (opts2) => {
58
60
  await api.applyPlugins({
@@ -129,6 +129,9 @@ var icons_default = (api) => {
129
129
  }
130
130
  }
131
131
  }
132
+ if (code.length) {
133
+ code.unshift("import React from 'react';");
134
+ }
132
135
  api.writeTmpFile({
133
136
  path: "icons.tsx",
134
137
  content: code.join("\n") || EMPTY_ICONS_FILE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/preset-umi",
3
- "version": "4.0.89",
3
+ "version": "4.1.0",
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,7 +25,7 @@
25
25
  "@umijs/history": "5.3.1",
26
26
  "babel-plugin-dynamic-import-node": "2.3.3",
27
27
  "click-to-react-component": "^1.0.8",
28
- "core-js": "3.28.0",
28
+ "core-js": "3.34.0",
29
29
  "current-script-polyfill": "1.0.0",
30
30
  "enhanced-resolve": "5.9.3",
31
31
  "fast-glob": "3.2.12",
@@ -39,21 +39,21 @@
39
39
  "react-router": "6.3.0",
40
40
  "react-router-dom": "6.3.0",
41
41
  "regenerator-runtime": "0.13.11",
42
- "@umijs/ast": "4.0.89",
43
- "@umijs/bundler-esbuild": "4.0.89",
44
- "@umijs/bundler-utils": "4.0.89",
45
- "@umijs/babel-preset-umi": "4.0.89",
46
- "@umijs/bundler-vite": "4.0.89",
47
- "@umijs/core": "4.0.89",
48
- "@umijs/mfsu": "4.0.89",
49
- "@umijs/renderer-react": "4.0.89",
50
- "@umijs/bundler-webpack": "4.0.89",
51
- "@umijs/plugin-run": "4.0.89",
52
- "@umijs/zod2ts": "4.0.89",
53
- "@umijs/utils": "4.0.89",
54
- "@umijs/server": "4.0.89",
42
+ "@umijs/ast": "4.1.0",
43
+ "@umijs/babel-preset-umi": "4.1.0",
44
+ "@umijs/bundler-utils": "4.1.0",
45
+ "@umijs/bundler-esbuild": "4.1.0",
46
+ "@umijs/bundler-vite": "4.1.0",
47
+ "@umijs/core": "4.1.0",
48
+ "@umijs/mfsu": "4.1.0",
49
+ "@umijs/plugin-run": "4.1.0",
50
+ "@umijs/bundler-webpack": "4.1.0",
51
+ "@umijs/renderer-react": "4.1.0",
52
+ "@umijs/server": "4.1.0",
53
+ "@umijs/utils": "4.1.0",
54
+ "@umijs/ui": "3.0.1",
55
55
  "@umijs/did-you-know": "1.0.3",
56
- "@umijs/ui": "3.0.1"
56
+ "@umijs/zod2ts": "4.1.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@manypkg/get-packages": "1.1.3",