@umijs/preset-vue 4.0.19 → 4.0.21
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/features/default.js +6 -21
- package/dist/features/webpack.js +3 -19
- package/package.json +3 -3
package/dist/features/default.js
CHANGED
|
@@ -1,26 +1,9 @@
|
|
|
1
1
|
var __create = Object.create;
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
9
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12
|
-
var __spreadValues = (a, b) => {
|
|
13
|
-
for (var prop in b || (b = {}))
|
|
14
|
-
if (__hasOwnProp.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
if (__getOwnPropSymbols)
|
|
17
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
18
|
-
if (__propIsEnum.call(b, prop))
|
|
19
|
-
__defNormalProp(a, prop, b[prop]);
|
|
20
|
-
}
|
|
21
|
-
return a;
|
|
22
|
-
};
|
|
23
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
24
7
|
var __export = (target, all) => {
|
|
25
8
|
for (var name in all)
|
|
26
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -60,18 +43,20 @@ var default_default = (api) => {
|
|
|
60
43
|
cwd: api.cwd,
|
|
61
44
|
path: "dist/vue.runtime.esm-bundler.js"
|
|
62
45
|
});
|
|
63
|
-
config.alias =
|
|
46
|
+
config.alias = {
|
|
47
|
+
...config.alias,
|
|
64
48
|
vue: ((_a = api.userConfig.vue) == null ? void 0 : _a.runtimeCompiler) ? vuePath : vueRuntimePath,
|
|
65
49
|
"vue-router": (0, import_resolveProjectDep.resolveProjectDep)({
|
|
66
50
|
pkg: api.pkg,
|
|
67
51
|
cwd: api.cwd,
|
|
68
52
|
dep: "vue-router"
|
|
69
53
|
}) || (0, import_path.dirname)(require.resolve("vue-router/package.json"))
|
|
70
|
-
}
|
|
71
|
-
config.define =
|
|
54
|
+
};
|
|
55
|
+
config.define = {
|
|
56
|
+
...config.define,
|
|
72
57
|
__VUE_OPTIONS_API__: true,
|
|
73
58
|
__VUE_PROD_DEVTOOLS__: false
|
|
74
|
-
}
|
|
59
|
+
};
|
|
75
60
|
return config;
|
|
76
61
|
});
|
|
77
62
|
api.modifyConfig((memo) => {
|
package/dist/features/webpack.js
CHANGED
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
-
var __spreadValues = (a, b) => {
|
|
11
|
-
for (var prop in b || (b = {}))
|
|
12
|
-
if (__hasOwnProp.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
if (__getOwnPropSymbols)
|
|
15
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
-
if (__propIsEnum.call(b, prop))
|
|
17
|
-
__defNormalProp(a, prop, b[prop]);
|
|
18
|
-
}
|
|
19
|
-
return a;
|
|
20
|
-
};
|
|
21
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
22
5
|
var __export = (target, all) => {
|
|
23
6
|
for (var name in all)
|
|
24
7
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -51,12 +34,13 @@ var webpack_default = (api) => {
|
|
|
51
34
|
api.modifyConfig((memo) => {
|
|
52
35
|
const enableMFSU = memo.mfsu !== false;
|
|
53
36
|
if (enableMFSU) {
|
|
54
|
-
memo.mfsu =
|
|
37
|
+
memo.mfsu = {
|
|
38
|
+
...memo.mfsu || {},
|
|
55
39
|
chainWebpack(config) {
|
|
56
40
|
(0, import_config.getConfig)(config, api);
|
|
57
41
|
return config;
|
|
58
42
|
}
|
|
59
|
-
}
|
|
43
|
+
};
|
|
60
44
|
}
|
|
61
45
|
return memo;
|
|
62
46
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/preset-vue",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.21",
|
|
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",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"dev": "umi-scripts father dev"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@umijs/renderer-vue": "4.0.
|
|
25
|
+
"@umijs/renderer-vue": "4.0.21",
|
|
26
26
|
"vue": "3.2.36",
|
|
27
27
|
"vue-loader": "17.0.0",
|
|
28
28
|
"vue-router": "4.0.15"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@vitejs/plugin-vue": "2.3.1",
|
|
32
|
-
"umi": "4.0.
|
|
32
|
+
"umi": "4.0.21"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|