weapp-vite 5.1.7 → 5.2.0-alpha.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.
Files changed (37) hide show
  1. package/dist/auto-import-components/resolvers.cjs +9 -10
  2. package/dist/auto-import-components/resolvers.mjs +5 -6
  3. package/dist/{chunk-THP5FZ4C.mjs → chunk-7MAZ2JUY.mjs} +2 -4
  4. package/dist/chunk-BT7FLFCC.cjs +29 -0
  5. package/dist/{chunk-ZHSGQ3TN.cjs → chunk-DVVMF6ND.cjs} +2 -4
  6. package/dist/chunk-FUOZYLBR.mjs +29 -0
  7. package/dist/{chunk-DRYEIGGG.mjs → chunk-HVMR6H5Z.mjs} +1 -3
  8. package/dist/chunk-NANSUN4W.mjs +6 -0
  9. package/dist/{chunk-YO2542IP.cjs → chunk-OS76JPG2.cjs} +4 -6
  10. package/dist/{chunk-QRVLP2MU.mjs → chunk-Q43Q3Z2L.mjs} +10051 -19631
  11. package/dist/chunk-U5ERJUOU.cjs +6 -0
  12. package/dist/{chunk-GVEHQPBV.cjs → chunk-Y6PWETW7.cjs} +10011 -19591
  13. package/dist/cli.cjs +138 -126
  14. package/dist/cli.mjs +122 -110
  15. package/dist/{config-BIqQ9USz.d.cts → config-DZ6sLDPC.d.cts} +188 -181
  16. package/dist/{config-Cf9WGlFE.d.ts → config-jn9VVQXs.d.ts} +188 -181
  17. package/dist/config.cjs +4 -4
  18. package/dist/config.d.cts +3 -5
  19. package/dist/config.d.ts +3 -5
  20. package/dist/config.mjs +3 -3
  21. package/dist/index.cjs +7 -9
  22. package/dist/index.d.cts +6 -8
  23. package/dist/index.d.ts +6 -8
  24. package/dist/index.mjs +6 -8
  25. package/dist/json.cjs +3 -3
  26. package/dist/json.d.cts +3 -5
  27. package/dist/json.d.ts +3 -5
  28. package/dist/json.mjs +2 -2
  29. package/dist/types.cjs +8 -7
  30. package/dist/types.d.cts +7 -9
  31. package/dist/types.d.ts +7 -9
  32. package/dist/types.mjs +2 -1
  33. package/dist/volar.cjs +2 -2
  34. package/dist/volar.mjs +1 -1
  35. package/package.json +19 -19
  36. package/dist/chunk-KOIV3AIW.mjs +0 -30
  37. package/dist/chunk-MJC522YQ.cjs +0 -30
@@ -1,13 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
-
4
- var _chunkYO2542IPcjs = require('../chunk-YO2542IP.cjs');
3
+ var _chunkOS76JPG2cjs = require('../chunk-OS76JPG2.cjs');
5
4
 
6
5
  // src/auto-import-components/resolvers/index.ts
7
- _chunkYO2542IPcjs.init_cjs_shims.call(void 0, );
6
+ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
8
7
 
9
8
  // src/auto-import-components/resolvers/tdesign.ts
10
- _chunkYO2542IPcjs.init_cjs_shims.call(void 0, );
9
+ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
11
10
  var _shared = require('@weapp-core/shared');
12
11
 
13
12
  // src/auto-import-components/resolvers/json/tdesign.json
@@ -92,7 +91,7 @@ var tdesign_default = [
92
91
 
93
92
  // src/auto-import-components/resolvers/tdesign.ts
94
93
  var defaultPrefix = "t-";
95
- var TDesignResolver = /* @__PURE__ */ _chunkYO2542IPcjs.__name.call(void 0, (opts) => {
94
+ var TDesignResolver = (opts) => {
96
95
  const { prefix, resolve } = _shared.defu.call(void 0, opts, {
97
96
  prefix: defaultPrefix,
98
97
  resolve({ name, prefix: prefix2 }) {
@@ -120,13 +119,13 @@ var TDesignResolver = /* @__PURE__ */ _chunkYO2542IPcjs.__name.call(void 0, (opt
120
119
  };
121
120
  }
122
121
  };
123
- }, "TDesignResolver");
122
+ };
124
123
 
125
124
  // src/auto-import-components/resolvers/types.ts
126
- _chunkYO2542IPcjs.init_cjs_shims.call(void 0, );
125
+ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
127
126
 
128
127
  // src/auto-import-components/resolvers/vant.ts
129
- _chunkYO2542IPcjs.init_cjs_shims.call(void 0, );
128
+ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
130
129
 
131
130
 
132
131
  // src/auto-import-components/resolvers/json/vant.json
@@ -204,7 +203,7 @@ var vant_default = [
204
203
 
205
204
  // src/auto-import-components/resolvers/vant.ts
206
205
  var defaultPrefix2 = "van-";
207
- var VantResolver = /* @__PURE__ */ _chunkYO2542IPcjs.__name.call(void 0, (opts) => {
206
+ var VantResolver = (opts) => {
208
207
  const { prefix, resolve } = _shared.defu.call(void 0, opts, {
209
208
  prefix: defaultPrefix2,
210
209
  resolve({ name, prefix: prefix2 }) {
@@ -232,7 +231,7 @@ var VantResolver = /* @__PURE__ */ _chunkYO2542IPcjs.__name.call(void 0, (opts)
232
231
  };
233
232
  }
234
233
  };
235
- }, "VantResolver");
234
+ };
236
235
 
237
236
 
238
237
 
@@ -1,7 +1,6 @@
1
1
  import {
2
- __name,
3
2
  init_esm_shims
4
- } from "../chunk-THP5FZ4C.mjs";
3
+ } from "../chunk-7MAZ2JUY.mjs";
5
4
 
6
5
  // src/auto-import-components/resolvers/index.ts
7
6
  init_esm_shims();
@@ -92,7 +91,7 @@ var tdesign_default = [
92
91
 
93
92
  // src/auto-import-components/resolvers/tdesign.ts
94
93
  var defaultPrefix = "t-";
95
- var TDesignResolver = /* @__PURE__ */ __name((opts) => {
94
+ var TDesignResolver = (opts) => {
96
95
  const { prefix, resolve } = defu(opts, {
97
96
  prefix: defaultPrefix,
98
97
  resolve({ name, prefix: prefix2 }) {
@@ -120,7 +119,7 @@ var TDesignResolver = /* @__PURE__ */ __name((opts) => {
120
119
  };
121
120
  }
122
121
  };
123
- }, "TDesignResolver");
122
+ };
124
123
 
125
124
  // src/auto-import-components/resolvers/types.ts
126
125
  init_esm_shims();
@@ -204,7 +203,7 @@ var vant_default = [
204
203
 
205
204
  // src/auto-import-components/resolvers/vant.ts
206
205
  var defaultPrefix2 = "van-";
207
- var VantResolver = /* @__PURE__ */ __name((opts) => {
206
+ var VantResolver = (opts) => {
208
207
  const { prefix, resolve } = defu2(opts, {
209
208
  prefix: defaultPrefix2,
210
209
  resolve({ name, prefix: prefix2 }) {
@@ -232,7 +231,7 @@ var VantResolver = /* @__PURE__ */ __name((opts) => {
232
231
  };
233
232
  }
234
233
  };
235
- }, "VantResolver");
234
+ };
236
235
  export {
237
236
  TDesignResolver,
238
237
  VantResolver
@@ -4,7 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
7
  var __esm = (fn, res) => function __init() {
9
8
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
9
  };
@@ -28,17 +27,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
27
  mod
29
28
  ));
30
29
 
31
- // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.5_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/esm_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.19_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/esm_shims.js
32
31
  import path from "path";
33
32
  import { fileURLToPath } from "url";
34
33
  var init_esm_shims = __esm({
35
- "../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.5_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/esm_shims.js"() {
34
+ "../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.19_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/esm_shims.js"() {
36
35
  "use strict";
37
36
  }
38
37
  });
39
38
 
40
39
  export {
41
- __name,
42
40
  __commonJS,
43
41
  __toESM,
44
42
  init_esm_shims
@@ -0,0 +1,29 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkOS76JPG2cjs = require('./chunk-OS76JPG2.cjs');
4
+
5
+ // src/json.ts
6
+ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
7
+ var defineAppJson = (config) => {
8
+ return config;
9
+ };
10
+ var definePageJson = (config) => {
11
+ return config;
12
+ };
13
+ var defineComponentJson = (config) => {
14
+ return config;
15
+ };
16
+ var defineSitemapJson = (config) => {
17
+ return config;
18
+ };
19
+ var defineThemeJson = (config) => {
20
+ return config;
21
+ };
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+ exports.defineAppJson = defineAppJson; exports.definePageJson = definePageJson; exports.defineComponentJson = defineComponentJson; exports.defineSitemapJson = defineSitemapJson; exports.defineThemeJson = defineThemeJson;
@@ -1,14 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
-
4
- var _chunkYO2542IPcjs = require('./chunk-YO2542IP.cjs');
3
+ var _chunkOS76JPG2cjs = require('./chunk-OS76JPG2.cjs');
5
4
 
6
5
  // src/config.ts
7
- _chunkYO2542IPcjs.init_cjs_shims.call(void 0, );
6
+ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
8
7
  function defineConfig(config) {
9
8
  return config;
10
9
  }
11
- _chunkYO2542IPcjs.__name.call(void 0, defineConfig, "defineConfig");
12
10
 
13
11
 
14
12
 
@@ -0,0 +1,29 @@
1
+ import {
2
+ init_esm_shims
3
+ } from "./chunk-7MAZ2JUY.mjs";
4
+
5
+ // src/json.ts
6
+ init_esm_shims();
7
+ var defineAppJson = (config) => {
8
+ return config;
9
+ };
10
+ var definePageJson = (config) => {
11
+ return config;
12
+ };
13
+ var defineComponentJson = (config) => {
14
+ return config;
15
+ };
16
+ var defineSitemapJson = (config) => {
17
+ return config;
18
+ };
19
+ var defineThemeJson = (config) => {
20
+ return config;
21
+ };
22
+
23
+ export {
24
+ defineAppJson,
25
+ definePageJson,
26
+ defineComponentJson,
27
+ defineSitemapJson,
28
+ defineThemeJson
29
+ };
@@ -1,14 +1,12 @@
1
1
  import {
2
- __name,
3
2
  init_esm_shims
4
- } from "./chunk-THP5FZ4C.mjs";
3
+ } from "./chunk-7MAZ2JUY.mjs";
5
4
 
6
5
  // src/config.ts
7
6
  init_esm_shims();
8
7
  function defineConfig(config) {
9
8
  return config;
10
9
  }
11
- __name(defineConfig, "defineConfig");
12
10
 
13
11
  export {
14
12
  defineConfig
@@ -0,0 +1,6 @@
1
+ import {
2
+ init_esm_shims
3
+ } from "./chunk-7MAZ2JUY.mjs";
4
+
5
+ // src/types/external.ts
6
+ init_esm_shims();
@@ -4,7 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
7
  var __esm = (fn, res) => function __init() {
9
8
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
9
  };
@@ -28,12 +27,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
27
  mod
29
28
  ));
30
29
 
31
- // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.5_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
30
+ // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.19_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
32
31
  var getImportMetaUrl, importMetaUrl;
33
32
  var init_cjs_shims = __esm({
34
- "../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.5_jiti@2.5.1_postcss@8.5.6_tsx@4.20.5_typescript@5.9.2_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js"() {
33
+ "../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.13.19_jiti@2.6.1_postcss@8.5.6_tsx@4.20.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js"() {
35
34
  "use strict";
36
- getImportMetaUrl = /* @__PURE__ */ __name(() => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href, "getImportMetaUrl");
35
+ getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
37
36
  importMetaUrl = exports.importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
38
37
  }
39
38
  });
@@ -43,5 +42,4 @@ var init_cjs_shims = __esm({
43
42
 
44
43
 
45
44
 
46
-
47
- exports.__name = __name; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.importMetaUrl = importMetaUrl; exports.init_cjs_shims = init_cjs_shims;
45
+ exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.importMetaUrl = importMetaUrl; exports.init_cjs_shims = init_cjs_shims;