@umijs/preset-vue 4.3.14 → 4.3.15
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.
|
@@ -32,7 +32,6 @@ __export(config_exports, {
|
|
|
32
32
|
getConfig: () => getConfig
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(config_exports);
|
|
35
|
-
var import_pluginWebpack5 = __toESM(require("vue-loader/dist/pluginWebpack5.js"));
|
|
36
35
|
var import_assetRules = require("./assetRules");
|
|
37
36
|
function getConfig(config, api) {
|
|
38
37
|
config.module.noParse(/^(vue|vue-router|vuex|vuex-router-sync)$/);
|
|
@@ -41,7 +40,8 @@ function getConfig(config, api) {
|
|
|
41
40
|
config.module.rule("vue").test(/\.vue$/).use("vue-loader").loader(require.resolve("vue-loader")).options({
|
|
42
41
|
babelParserPlugins: ["jsx", "classProperties", "decorators-legacy"]
|
|
43
42
|
});
|
|
44
|
-
|
|
43
|
+
const VueLoaderPlugin = require("vue-loader/dist/pluginWebpack5");
|
|
44
|
+
config.plugin("vue-loader-plugin").use(VueLoaderPlugin.default);
|
|
45
45
|
config.module.rule("vue-style").test(/\.vue$/).resourceQuery(/type=style/).sideEffects(true);
|
|
46
46
|
config.module.rule("fix-element-ui-plus").test(/\.mjs$/).include.add(/node_modules/).end().type("javascript/auto").resolve.fullySpecified(false);
|
|
47
47
|
(0, import_assetRules.addAssetRules)({ api, config });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/preset-vue",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.15",
|
|
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,11 +22,11 @@
|
|
|
22
22
|
"vue": "3.2.45",
|
|
23
23
|
"vue-loader": "17.0.1",
|
|
24
24
|
"vue-router": "4.1.6",
|
|
25
|
-
"@umijs/renderer-vue": "4.3.
|
|
25
|
+
"@umijs/renderer-vue": "4.3.15"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@vitejs/plugin-vue": "4.1.0",
|
|
29
|
-
"umi": "4.3.
|
|
29
|
+
"umi": "4.3.15"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|