@umijs/preset-vue 4.0.64 → 4.0.66

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.
@@ -86,8 +86,10 @@ var default_default = (api) => {
86
86
  // 支持 tsx
87
87
  isTSX: true
88
88
  };
89
+ memo.presetReact = false;
89
90
  return memo;
90
91
  });
92
+ api.addExtraBabelPlugins(() => [require.resolve("@vue/babel-plugin-jsx")]);
91
93
  api.addRuntimePluginKey(() => [
92
94
  "router",
93
95
  "onRouterCreated",
@@ -32,14 +32,16 @@ __export(vite_exports, {
32
32
  default: () => vite_default
33
33
  });
34
34
  module.exports = __toCommonJS(vite_exports);
35
+ var import_plugin_vue_jsx = __toESM(require("@vitejs/plugin-vue-jsx"));
35
36
  var import_plugin_vue = __toESM(require("../../../compiled/@vitejs/plugin-vue"));
36
37
  var vite_default = (api) => {
37
38
  api.describe({
38
39
  key: "preset-vue:vite"
39
40
  });
40
41
  api.modifyViteConfig((config) => {
41
- var _a;
42
+ var _a, _b, _c, _d;
42
43
  (_a = config.plugins) == null ? void 0 : _a.push((0, import_plugin_vue.default)(api.config.vue));
44
+ (_d = config.plugins) == null ? void 0 : _d.push((0, import_plugin_vue_jsx.default)((_c = (_b = api.config) == null ? void 0 : _b.vue) == null ? void 0 : _c.pluginJsx));
43
45
  return config;
44
46
  });
45
47
  };
package/dist/index.js CHANGED
@@ -37,8 +37,8 @@ var src_default = (api) => {
37
37
  api.describe({
38
38
  key: "vue",
39
39
  config: {
40
- schema(joi) {
41
- return joi.object();
40
+ schema({ zod }) {
41
+ return zod.object({});
42
42
  },
43
43
  default: {}
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/preset-vue",
3
- "version": "4.0.64",
3
+ "version": "4.0.66",
4
4
  "description": "@umijs/preset-vue",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/preset-vue#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -17,14 +17,16 @@
17
17
  "compiled"
18
18
  ],
19
19
  "dependencies": {
20
+ "@vitejs/plugin-vue-jsx": "3.0.1",
21
+ "@vue/babel-plugin-jsx": "1.1.1",
20
22
  "vue": "3.2.45",
21
23
  "vue-loader": "17.0.1",
22
24
  "vue-router": "4.1.6",
23
- "@umijs/renderer-vue": "4.0.64"
25
+ "@umijs/renderer-vue": "4.0.66"
24
26
  },
25
27
  "devDependencies": {
26
28
  "@vitejs/plugin-vue": "4.0.0",
27
- "umi": "4.0.64"
29
+ "umi": "4.0.66"
28
30
  },
29
31
  "publishConfig": {
30
32
  "access": "public"