@vue3-oop/preset-vue 2.4.14

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.
@@ -0,0 +1,48 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/vue/webpack/index.ts
20
+ var webpack_exports = {};
21
+ __export(webpack_exports, {
22
+ default: () => webpack_default
23
+ });
24
+ module.exports = __toCommonJS(webpack_exports);
25
+ var import_config = require("./config");
26
+ function webpack_default(api) {
27
+ api.modifyConfig((memo) => {
28
+ const enableMFSU = memo.mfsu !== false;
29
+ if (enableMFSU) {
30
+ const msfuConfig = memo.mfsu || {};
31
+ memo.mfsu = {
32
+ ...msfuConfig,
33
+ shared: {
34
+ ...msfuConfig.shared,
35
+ vue: { singleton: true }
36
+ },
37
+ chainWebpack(config) {
38
+ (0, import_config.getConfig)(config, api);
39
+ return config;
40
+ }
41
+ };
42
+ }
43
+ return memo;
44
+ });
45
+ api.chainWebpack((memo) => {
46
+ (0, import_config.getConfig)(memo, api);
47
+ });
48
+ }