weapp-vite 5.9.3 → 5.9.5

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.
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUUINGAX5cjs = require('../chunk-UUINGAX5.cjs');
3
+ var _chunkFUIUGCNVcjs = require('../chunk-FUIUGCNV.cjs');
4
4
 
5
5
  // src/auto-import-components/resolvers/index.ts
6
- _chunkUUINGAX5cjs.init_cjs_shims.call(void 0, );
6
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );
7
7
 
8
8
  // src/auto-import-components/resolvers/tdesign.ts
9
- _chunkUUINGAX5cjs.init_cjs_shims.call(void 0, );
9
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );
10
10
  var _shared = require('@weapp-core/shared');
11
11
 
12
12
  // src/auto-import-components/resolvers/json/tdesign.json
@@ -129,10 +129,10 @@ var TDesignResolver = (opts) => {
129
129
  };
130
130
 
131
131
  // src/auto-import-components/resolvers/types.ts
132
- _chunkUUINGAX5cjs.init_cjs_shims.call(void 0, );
132
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );
133
133
 
134
134
  // src/auto-import-components/resolvers/vant.ts
135
- _chunkUUINGAX5cjs.init_cjs_shims.call(void 0, );
135
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );
136
136
 
137
137
 
138
138
  // src/auto-import-components/resolvers/json/vant.json
@@ -242,6 +242,69 @@ var VantResolver = (opts) => {
242
242
  return resolver;
243
243
  };
244
244
 
245
+ // src/auto-import-components/resolvers/weui.ts
246
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );
245
247
 
246
248
 
247
- exports.TDesignResolver = TDesignResolver; exports.VantResolver = VantResolver;
249
+ // src/auto-import-components/resolvers/json/weui.json
250
+ var weui_default = [
251
+ "actionsheet",
252
+ "badge",
253
+ "cell",
254
+ "cells",
255
+ "checkbox",
256
+ "checkbox-group",
257
+ "dialog",
258
+ "form",
259
+ "form-page",
260
+ "gallery",
261
+ "grids",
262
+ "half-screen-dialog",
263
+ "icon",
264
+ "loading",
265
+ "msg",
266
+ "navigation-bar",
267
+ "searchbar",
268
+ "slideview",
269
+ "tabbar",
270
+ "toptips",
271
+ "uploader"
272
+ ];
273
+
274
+ // src/auto-import-components/resolvers/weui.ts
275
+ var defaultPrefix3 = "mp-";
276
+ var WeuiResolver = (opts) => {
277
+ const { prefix, resolve } = _shared.defu.call(void 0, opts, {
278
+ prefix: defaultPrefix3,
279
+ resolve({ name, prefix: prefix2 }) {
280
+ return {
281
+ key: `${prefix2}${name}`,
282
+ value: `weui-miniprogram/${name}/${name}`
283
+ };
284
+ }
285
+ });
286
+ const map = weui_default.reduce((acc, cur) => {
287
+ const { key, value } = resolve({
288
+ name: cur,
289
+ prefix
290
+ });
291
+ acc[key] = value;
292
+ return acc;
293
+ }, {});
294
+ const resolver = (componentName) => {
295
+ const from = map[componentName];
296
+ if (from) {
297
+ return {
298
+ name: componentName,
299
+ from
300
+ };
301
+ }
302
+ };
303
+ resolver.components = Object.freeze({ ...map });
304
+ return resolver;
305
+ };
306
+
307
+
308
+
309
+
310
+ exports.TDesignResolver = TDesignResolver; exports.VantResolver = VantResolver; exports.WeuiResolver = WeuiResolver;
@@ -5,4 +5,6 @@ declare const TDesignResolver: CreateResolver;
5
5
 
6
6
  declare const VantResolver: CreateResolver;
7
7
 
8
- export { CreateResolver, TDesignResolver, VantResolver };
8
+ declare const WeuiResolver: CreateResolver;
9
+
10
+ export { CreateResolver, TDesignResolver, VantResolver, WeuiResolver };
@@ -5,4 +5,6 @@ declare const TDesignResolver: CreateResolver;
5
5
 
6
6
  declare const VantResolver: CreateResolver;
7
7
 
8
- export { CreateResolver, TDesignResolver, VantResolver };
8
+ declare const WeuiResolver: CreateResolver;
9
+
10
+ export { CreateResolver, TDesignResolver, VantResolver, WeuiResolver };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "../chunk-BABWFO2J.mjs";
3
+ } from "../chunk-3V77QISZ.mjs";
4
4
 
5
5
  // src/auto-import-components/resolvers/index.ts
6
6
  init_esm_shims();
@@ -241,7 +241,70 @@ var VantResolver = (opts) => {
241
241
  resolver.components = Object.freeze({ ...map });
242
242
  return resolver;
243
243
  };
244
+
245
+ // src/auto-import-components/resolvers/weui.ts
246
+ init_esm_shims();
247
+ import { defu as defu3 } from "@weapp-core/shared";
248
+
249
+ // src/auto-import-components/resolvers/json/weui.json
250
+ var weui_default = [
251
+ "actionsheet",
252
+ "badge",
253
+ "cell",
254
+ "cells",
255
+ "checkbox",
256
+ "checkbox-group",
257
+ "dialog",
258
+ "form",
259
+ "form-page",
260
+ "gallery",
261
+ "grids",
262
+ "half-screen-dialog",
263
+ "icon",
264
+ "loading",
265
+ "msg",
266
+ "navigation-bar",
267
+ "searchbar",
268
+ "slideview",
269
+ "tabbar",
270
+ "toptips",
271
+ "uploader"
272
+ ];
273
+
274
+ // src/auto-import-components/resolvers/weui.ts
275
+ var defaultPrefix3 = "mp-";
276
+ var WeuiResolver = (opts) => {
277
+ const { prefix, resolve } = defu3(opts, {
278
+ prefix: defaultPrefix3,
279
+ resolve({ name, prefix: prefix2 }) {
280
+ return {
281
+ key: `${prefix2}${name}`,
282
+ value: `weui-miniprogram/${name}/${name}`
283
+ };
284
+ }
285
+ });
286
+ const map = weui_default.reduce((acc, cur) => {
287
+ const { key, value } = resolve({
288
+ name: cur,
289
+ prefix
290
+ });
291
+ acc[key] = value;
292
+ return acc;
293
+ }, {});
294
+ const resolver = (componentName) => {
295
+ const from = map[componentName];
296
+ if (from) {
297
+ return {
298
+ name: componentName,
299
+ from
300
+ };
301
+ }
302
+ };
303
+ resolver.components = Object.freeze({ ...map });
304
+ return resolver;
305
+ };
244
306
  export {
245
307
  TDesignResolver,
246
- VantResolver
308
+ VantResolver,
309
+ WeuiResolver
247
310
  };
@@ -1,20 +1,20 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkX7NDPMSXcjs = require('./chunk-X7NDPMSX.cjs');
4
- require('./chunk-G2OEXJ54.cjs');
5
- require('./chunk-QE4CCPIM.cjs');
3
+ var _chunkPOPKYIZYcjs = require('./chunk-POPKYIZY.cjs');
4
+ require('./chunk-KV5JVZNT.cjs');
5
+ require('./chunk-3OFG76US.cjs');
6
6
 
7
7
 
8
- var _chunkUUINGAX5cjs = require('./chunk-UUINGAX5.cjs');
8
+ var _chunkFUIUGCNVcjs = require('./chunk-FUIUGCNV.cjs');
9
9
 
10
10
  // src/auto-routes.ts
11
- _chunkUUINGAX5cjs.init_cjs_shims.call(void 0, );
11
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );
12
12
 
13
13
  // src/context/index.ts
14
- _chunkUUINGAX5cjs.init_cjs_shims.call(void 0, );
14
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );
15
15
 
16
16
  // src/context/CompilerContext.ts
17
- _chunkUUINGAX5cjs.init_cjs_shims.call(void 0, );
17
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );
18
18
 
19
19
  // src/auto-routes.ts
20
20
  function createGetter(resolver) {
@@ -24,7 +24,7 @@ function createGetter(resolver) {
24
24
  get: resolver
25
25
  };
26
26
  }
27
- var ctx = _chunkX7NDPMSXcjs.getCompilerContext.call(void 0, );
27
+ var ctx = _chunkPOPKYIZYcjs.getCompilerContext.call(void 0, );
28
28
  var service = ctx.autoRoutesService;
29
29
  var routes = {};
30
30
  Object.defineProperties(routes, {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getCompilerContext
3
- } from "./chunk-MEDNWDUE.mjs";
4
- import "./chunk-ADHMUOMA.mjs";
5
- import "./chunk-6UMXPFUN.mjs";
3
+ } from "./chunk-O6FIJOUD.mjs";
4
+ import "./chunk-B4H5W45I.mjs";
5
+ import "./chunk-VNPRE7DQ.mjs";
6
6
  import {
7
7
  init_esm_shims
8
- } from "./chunk-BABWFO2J.mjs";
8
+ } from "./chunk-3V77QISZ.mjs";
9
9
 
10
10
  // src/auto-routes.ts
11
11
  init_esm_shims();
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUUINGAX5cjs = require('./chunk-UUINGAX5.cjs');
3
+ var _chunkFUIUGCNVcjs = require('./chunk-FUIUGCNV.cjs');
4
4
 
5
5
  // src/json.ts
6
- _chunkUUINGAX5cjs.init_cjs_shims.call(void 0, );
6
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );
7
7
  var defineAppJson = (config) => {
8
8
  return config;
9
9
  };
@@ -33,11 +33,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.1_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
+ // ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.2_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
37
37
  import path from "path";
38
38
  import { fileURLToPath } from "url";
39
39
  var init_esm_shims = __esm({
40
- "../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.1_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"() {
40
+ "../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.2_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"() {
41
41
  "use strict";
42
42
  }
43
43
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-BABWFO2J.mjs";
3
+ } from "./chunk-3V77QISZ.mjs";
4
4
 
5
5
  // src/config.ts
6
6
  init_esm_shims();
@@ -2,10 +2,10 @@ import {
2
2
  getCompilerContext,
3
3
  resetCompilerContext,
4
4
  setActiveCompilerContextKey
5
- } from "./chunk-MEDNWDUE.mjs";
5
+ } from "./chunk-O6FIJOUD.mjs";
6
6
  import {
7
7
  init_esm_shims
8
- } from "./chunk-BABWFO2J.mjs";
8
+ } from "./chunk-3V77QISZ.mjs";
9
9
 
10
10
  // src/createContext.ts
11
11
  init_esm_shims();
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
- // ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.1_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
36
+ // ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.2_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
37
37
  var getImportMetaUrl, importMetaUrl;
38
38
  var init_cjs_shims = __esm({
39
- "../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.1_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"() {
39
+ "../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.2_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"() {
40
40
  "use strict";
41
41
  getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.tagName.toUpperCase() === "SCRIPT" ? document.currentScript.src : new URL("main.js", document.baseURI).href;
42
42
  importMetaUrl = exports.importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-BABWFO2J.mjs";
3
+ } from "./chunk-3V77QISZ.mjs";
4
4
 
5
5
  // src/types/external.ts
6
6
  init_esm_shims();
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUUINGAX5cjs = require('./chunk-UUINGAX5.cjs');
3
+ var _chunkFUIUGCNVcjs = require('./chunk-FUIUGCNV.cjs');
4
4
 
5
5
  // src/config.ts
6
- _chunkUUINGAX5cjs.init_cjs_shims.call(void 0, );
6
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );
7
7
  function defineConfig(config) {
8
8
  return config;
9
9
  }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _chunkFUIUGCNVcjs = require('./chunk-FUIUGCNV.cjs');
4
+
5
+ // src/types/external.ts
6
+ _chunkFUIUGCNVcjs.init_cjs_shims.call(void 0, );