weapp-vite 5.0.1 → 5.0.3

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,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk5OGRUAWTcjs = require('../chunk-5OGRUAWT.cjs');
4
+ var _chunk5ZC54VFEcjs = require('../chunk-5ZC54VFE.cjs');
5
5
 
6
6
  // src/auto-import-components/resolvers/index.ts
7
- _chunk5OGRUAWTcjs.init_cjs_shims.call(void 0, );
7
+ _chunk5ZC54VFEcjs.init_cjs_shims.call(void 0, );
8
8
 
9
9
  // src/auto-import-components/resolvers/tdesign.ts
10
- _chunk5OGRUAWTcjs.init_cjs_shims.call(void 0, );
10
+ _chunk5ZC54VFEcjs.init_cjs_shims.call(void 0, );
11
11
  var _shared = require('@weapp-core/shared');
12
12
 
13
13
  // src/auto-import-components/resolvers/json/tdesign.json
@@ -92,7 +92,7 @@ var tdesign_default = [
92
92
 
93
93
  // src/auto-import-components/resolvers/tdesign.ts
94
94
  var defaultPrefix = "t-";
95
- var TDesignResolver = /* @__PURE__ */ _chunk5OGRUAWTcjs.__name.call(void 0, (opts) => {
95
+ var TDesignResolver = /* @__PURE__ */ _chunk5ZC54VFEcjs.__name.call(void 0, (opts) => {
96
96
  const { prefix, resolve } = _shared.defu.call(void 0, opts, {
97
97
  prefix: defaultPrefix,
98
98
  resolve({ name, prefix: prefix2 }) {
@@ -123,10 +123,10 @@ var TDesignResolver = /* @__PURE__ */ _chunk5OGRUAWTcjs.__name.call(void 0, (opt
123
123
  }, "TDesignResolver");
124
124
 
125
125
  // src/auto-import-components/resolvers/types.ts
126
- _chunk5OGRUAWTcjs.init_cjs_shims.call(void 0, );
126
+ _chunk5ZC54VFEcjs.init_cjs_shims.call(void 0, );
127
127
 
128
128
  // src/auto-import-components/resolvers/vant.ts
129
- _chunk5OGRUAWTcjs.init_cjs_shims.call(void 0, );
129
+ _chunk5ZC54VFEcjs.init_cjs_shims.call(void 0, );
130
130
 
131
131
 
132
132
  // src/auto-import-components/resolvers/json/vant.json
@@ -204,7 +204,7 @@ var vant_default = [
204
204
 
205
205
  // src/auto-import-components/resolvers/vant.ts
206
206
  var defaultPrefix2 = "van-";
207
- var VantResolver = /* @__PURE__ */ _chunk5OGRUAWTcjs.__name.call(void 0, (opts) => {
207
+ var VantResolver = /* @__PURE__ */ _chunk5ZC54VFEcjs.__name.call(void 0, (opts) => {
208
208
  const { prefix, resolve } = _shared.defu.call(void 0, opts, {
209
209
  prefix: defaultPrefix2,
210
210
  resolve({ name, prefix: prefix2 }) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __name,
3
3
  init_esm_shims
4
- } from "../chunk-XO7RY5WN.mjs";
4
+ } from "../chunk-AJ5T4GX6.mjs";
5
5
 
6
6
  // src/auto-import-components/resolvers/index.ts
7
7
  init_esm_shims();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __name,
3
3
  init_esm_shims
4
- } from "./chunk-XO7RY5WN.mjs";
4
+ } from "./chunk-AJ5T4GX6.mjs";
5
5
 
6
6
  // src/json.ts
7
7
  init_esm_shims();
@@ -28,10 +28,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  mod
29
29
  ));
30
30
 
31
- // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.0_jiti@2.4.2_postcss@8.5.4_tsx@4.20.1_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js
31
+ // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.4.2_postcss@8.5.5_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js
32
32
  var getImportMetaUrl, importMetaUrl;
33
33
  var init_cjs_shims = __esm({
34
- "../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.0_jiti@2.4.2_postcss@8.5.4_tsx@4.20.1_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js"() {
34
+ "../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.4.2_postcss@8.5.5_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/cjs_shims.js"() {
35
35
  "use strict";
36
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");
37
37
  importMetaUrl = exports.importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __name,
3
3
  init_esm_shims
4
- } from "./chunk-XO7RY5WN.mjs";
4
+ } from "./chunk-AJ5T4GX6.mjs";
5
5
 
6
6
  // src/config.ts
7
7
  init_esm_shims();
@@ -28,11 +28,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  mod
29
29
  ));
30
30
 
31
- // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.0_jiti@2.4.2_postcss@8.5.4_tsx@4.20.1_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js
31
+ // ../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.4.2_postcss@8.5.5_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js
32
32
  import path from "path";
33
33
  import { fileURLToPath } from "url";
34
34
  var init_esm_shims = __esm({
35
- "../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.0_jiti@2.4.2_postcss@8.5.4_tsx@4.20.1_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js"() {
35
+ "../../node_modules/.pnpm/tsup@8.5.0_@swc+core@1.12.1_jiti@2.4.2_postcss@8.5.5_tsx@4.20.3_typescript@5.8.3_yaml@2.8.0/node_modules/tsup/assets/esm_shims.js"() {
36
36
  "use strict";
37
37
  }
38
38
  });
@@ -1,23 +1,23 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk5OGRUAWTcjs = require('./chunk-5OGRUAWT.cjs');
4
+ var _chunk5ZC54VFEcjs = require('./chunk-5ZC54VFE.cjs');
5
5
 
6
6
  // src/json.ts
7
- _chunk5OGRUAWTcjs.init_cjs_shims.call(void 0, );
8
- var defineAppJson = /* @__PURE__ */ _chunk5OGRUAWTcjs.__name.call(void 0, (config) => {
7
+ _chunk5ZC54VFEcjs.init_cjs_shims.call(void 0, );
8
+ var defineAppJson = /* @__PURE__ */ _chunk5ZC54VFEcjs.__name.call(void 0, (config) => {
9
9
  return config;
10
10
  }, "defineAppJson");
11
- var definePageJson = /* @__PURE__ */ _chunk5OGRUAWTcjs.__name.call(void 0, (config) => {
11
+ var definePageJson = /* @__PURE__ */ _chunk5ZC54VFEcjs.__name.call(void 0, (config) => {
12
12
  return config;
13
13
  }, "definePageJson");
14
- var defineComponentJson = /* @__PURE__ */ _chunk5OGRUAWTcjs.__name.call(void 0, (config) => {
14
+ var defineComponentJson = /* @__PURE__ */ _chunk5ZC54VFEcjs.__name.call(void 0, (config) => {
15
15
  return config;
16
16
  }, "defineComponentJson");
17
- var defineSitemapJson = /* @__PURE__ */ _chunk5OGRUAWTcjs.__name.call(void 0, (config) => {
17
+ var defineSitemapJson = /* @__PURE__ */ _chunk5ZC54VFEcjs.__name.call(void 0, (config) => {
18
18
  return config;
19
19
  }, "defineSitemapJson");
20
- var defineThemeJson = /* @__PURE__ */ _chunk5OGRUAWTcjs.__name.call(void 0, (config) => {
20
+ var defineThemeJson = /* @__PURE__ */ _chunk5ZC54VFEcjs.__name.call(void 0, (config) => {
21
21
  return config;
22
22
  }, "defineThemeJson");
23
23
 
@@ -3,7 +3,7 @@ import {
3
3
  __name,
4
4
  __toESM,
5
5
  init_esm_shims
6
- } from "./chunk-XO7RY5WN.mjs";
6
+ } from "./chunk-AJ5T4GX6.mjs";
7
7
 
8
8
  // ../../node_modules/.pnpm/reflect-metadata@0.2.2/node_modules/reflect-metadata/Reflect.js
9
9
  var require_Reflect = __commonJS({
@@ -5764,11 +5764,12 @@ var AutoImportService2 = class {
5764
5764
  logWarnOnce(`\u53D1\u73B0 \`${componentName}\` \u7EC4\u4EF6\u91CD\u540D! \u8DF3\u8FC7\u7EC4\u4EF6 \`${this.configService.relativeCwd(baseName)}\` \u7684\u81EA\u52A8\u5F15\u5165`);
5765
5765
  return;
5766
5766
  }
5767
+ const from = `/${this.configService.relativeSrcRoot(this.configService.relativeCwd(removeExtensionDeep(partialEntry.jsonPath)))}`;
5767
5768
  this.potentialComponentMap.set(componentName, {
5768
5769
  entry: partialEntry,
5769
5770
  value: {
5770
5771
  name: componentName,
5771
- from: `/${this.configService.relativeSrcRoot(this.configService.relativeCwd(removeExtensionDeep(partialEntry.jsonPath)))}`
5772
+ from
5772
5773
  }
5773
5774
  });
5774
5775
  }
@@ -24402,7 +24403,12 @@ var JsonService2 = class {
24402
24403
  filepath,
24403
24404
  cwd: this.configService.options.cwd,
24404
24405
  rolldownOptions: {
24405
- define: this.configService.defineImportMetaEnv
24406
+ input: {
24407
+ define: this.configService.defineImportMetaEnv
24408
+ },
24409
+ output: {
24410
+ exports: "named"
24411
+ }
24406
24412
  }
24407
24413
  });
24408
24414
  resultJson = typeof mod.default === "function" ? await mod.default(getCompilerContext()) : mod.default;
@@ -24520,7 +24526,7 @@ var NpmService2 = class {
24520
24526
  };
24521
24527
  }, "outExtensions"),
24522
24528
  outputOptions: {
24523
- exports: "auto"
24529
+ exports: "named"
24524
24530
  },
24525
24531
  // https://github.com/egoist/tsup/blob/769aa49cae16cc1713992970db966d6514878e06/src/rollup/ts-resolve.ts#L3
24526
24532
  // esbuildOptions(options) {