weapp-vite 5.5.1 → 5.6.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 (44) hide show
  1. package/dist/auto-import-components/resolvers.cjs +5 -5
  2. package/dist/auto-import-components/resolvers.d.cts +2 -2
  3. package/dist/auto-import-components/resolvers.d.ts +2 -2
  4. package/dist/auto-import-components/resolvers.mjs +1 -1
  5. package/dist/auto-routes.cjs +8 -8
  6. package/dist/auto-routes.mjs +4 -4
  7. package/dist/{chunk-2BJRVKKW.mjs → chunk-2JQYFUSO.mjs} +2608 -1527
  8. package/dist/{chunk-XMPAHTOR.cjs → chunk-2Q7K5AR4.cjs} +6 -6
  9. package/dist/{chunk-DVVMF6ND.cjs → chunk-ACNTFTT2.cjs} +2 -2
  10. package/dist/{chunk-7MAZ2JUY.mjs → chunk-C5ZVOPAJ.mjs} +10 -3
  11. package/dist/{chunk-HVMR6H5Z.mjs → chunk-DG5WTO5V.mjs} +1 -1
  12. package/dist/chunk-EKHZHEQK.cjs +6 -0
  13. package/dist/{chunk-NANSUN4W.mjs → chunk-JMKI52G2.mjs} +1 -1
  14. package/dist/{chunk-FUOZYLBR.mjs → chunk-JXSGMLN2.mjs} +1 -1
  15. package/dist/{chunk-IFYXRQC3.mjs → chunk-K2MHCVVB.mjs} +2 -2
  16. package/dist/{chunk-PONRZBHY.cjs → chunk-KE6RSOKX.cjs} +2558 -1477
  17. package/dist/{chunk-OS76JPG2.cjs → chunk-WWFEREWV.cjs} +11 -4
  18. package/dist/{chunk-BT7FLFCC.cjs → chunk-ZIRGPJR5.cjs} +2 -2
  19. package/dist/cli.cjs +40 -40
  20. package/dist/cli.mjs +3 -3
  21. package/dist/{config-CUFqPmXh.d.ts → config-BaoM7pt1.d.ts} +84 -6
  22. package/dist/{config-Qcwf5OzO.d.cts → config-D7WbfUyN.d.cts} +84 -6
  23. package/dist/config.cjs +4 -4
  24. package/dist/config.d.cts +4 -4
  25. package/dist/config.d.ts +4 -4
  26. package/dist/config.mjs +3 -3
  27. package/dist/index.cjs +8 -8
  28. package/dist/index.d.cts +5 -5
  29. package/dist/index.d.ts +5 -5
  30. package/dist/index.mjs +6 -6
  31. package/dist/json.cjs +3 -3
  32. package/dist/json.d.cts +5 -5
  33. package/dist/json.d.ts +5 -5
  34. package/dist/json.mjs +2 -2
  35. package/dist/{types-g_G_na7r.d.ts → types-3q1Qq6Fe.d.cts} +1 -1
  36. package/dist/{types-g_G_na7r.d.cts → types-3q1Qq6Fe.d.ts} +1 -1
  37. package/dist/types.cjs +11 -8
  38. package/dist/types.d.cts +13 -2
  39. package/dist/types.d.ts +13 -2
  40. package/dist/types.mjs +5 -2
  41. package/dist/volar.cjs +2 -2
  42. package/dist/volar.mjs +1 -1
  43. package/package.json +12 -12
  44. package/dist/chunk-U5ERJUOU.cjs +0 -6
@@ -1,17 +1,17 @@
1
- import { InputOption, RolldownOutput, RolldownWatcher } from 'rolldown';
2
1
  import { InlineConfig, UserConfig as UserConfig$1, ViteDevServer, build, UserConfigFnObject, UserConfigExport } from 'vite';
3
- import { A as AutoRoutes } from './routes-C9hKJjXs.cjs';
4
- import { a as Resolver, R as ResolvedValue } from './types-g_G_na7r.cjs';
5
- import { Options } from 'tsdown';
6
2
  import { GenerateType, Component, Theme, Sitemap, App, Page, Plugin } from '@weapp-core/schematics';
7
3
  import { WeappWebPluginOptions } from '@weapp-vite/web';
4
+ import { InputOption, RolldownOutput, RolldownWatcher } from 'rolldown';
5
+ import { Options } from 'tsdown';
8
6
  import { WrapPluginOptions } from 'vite-plugin-performance';
9
7
  import { PluginOptions } from 'vite-tsconfig-paths';
8
+ import { R as Resolver, a as ResolvedValue } from './types-3q1Qq6Fe.cjs';
10
9
  import PQueue from 'p-queue';
11
10
  import { DetectResult } from 'package-manager-detector';
12
11
  import { PackageJson } from 'pkg-types';
13
12
  import { Buffer } from 'node:buffer';
14
13
  import { LRUCache } from 'lru-cache';
14
+ import { A as AutoRoutes } from './routes-C9hKJjXs.cjs';
15
15
 
16
16
  interface Alias {
17
17
  find: string | RegExp;
@@ -57,6 +57,56 @@ interface SubPackage {
57
57
  dependencies?: (string | RegExp)[];
58
58
  inlineConfig?: Partial<InlineConfig>;
59
59
  }
60
+ type SubPackageStyleScope = 'all' | 'pages' | 'components';
61
+ interface SubPackageStyleConfigObject {
62
+ /** 样式文件路径,可以是相对分包 root、相对 `srcRoot` 或绝对路径 */
63
+ source: string;
64
+ /**
65
+ * 作用范围快捷配置:
66
+ *
67
+ * - `all`: 默认值,分包内所有页面与组件都会引入
68
+ * - `pages`: 仅匹配分包 `pages/**`
69
+ * - `components`: 仅匹配分包 `components/**`
70
+ *
71
+ * 可结合 `include` / `exclude` 进一步细分范围
72
+ */
73
+ scope?: SubPackageStyleScope;
74
+ /** 自定义包含路径,支持传入单个 glob 或数组,默认覆盖分包内所有文件 */
75
+ include?: string | string[];
76
+ /** 自定义排除路径,支持传入单个 glob 或数组 */
77
+ exclude?: string | string[];
78
+ }
79
+ type SubPackageStyleConfigEntry = string | SubPackageStyleConfigObject;
80
+ interface SubPackageStyleEntry {
81
+ /**
82
+ * 源配置字符串(便于诊断)
83
+ */
84
+ source: string;
85
+ /**
86
+ * 原始样式文件的绝对路径
87
+ */
88
+ absolutePath: string;
89
+ /**
90
+ * 相对于 `srcRoot` 的输出路径(已转换为目标平台样式后缀)
91
+ */
92
+ outputRelativePath: string;
93
+ /**
94
+ * 源文件扩展名(包含 `.`)
95
+ */
96
+ inputExtension: string;
97
+ /**
98
+ * 作用域快捷字段,便于诊断输出
99
+ */
100
+ scope: SubPackageStyleScope;
101
+ /**
102
+ * 允许生效的 glob 列表(基于分包 root 的相对路径)
103
+ */
104
+ include: string[];
105
+ /**
106
+ * 排除的 glob 列表(基于分包 root 的相对路径)
107
+ */
108
+ exclude: string[];
109
+ }
60
110
  type GenerateExtensionsOptions = Partial<{
61
111
  js: 'js' | 'ts' | (string & {});
62
112
  json: 'js' | 'ts' | 'json' | (string & {});
@@ -282,6 +332,15 @@ interface WeappViteConfig {
282
332
  */
283
333
  subPackages?: Record<string, Pick<SubPackage, 'independent' | 'dependencies' | 'inlineConfig'> & {
284
334
  autoImportComponents?: AutoImportComponents;
335
+ /** 分包文件变更时是否强制重新生成共享样式产物,默认启用 */
336
+ watchSharedStyles?: boolean;
337
+ /**
338
+ * 分包共享样式入口,支持传入一个或多个 `wxss`/`css` 文件路径
339
+ * - 相对路径默认基于当前分包的 `root`
340
+ * - 也可以传入绝对路径或相对 `srcRoot` 的路径
341
+ * - 支持传入对象配置 `scope`/`include`/`exclude` 精准控制注入范围
342
+ */
343
+ styles?: SubPackageStyleConfigEntry | SubPackageStyleConfigEntry[];
285
344
  }>;
286
345
  /**
287
346
  * 需要被额外包括的资源
@@ -368,6 +427,8 @@ interface ProjectConfig {
368
427
  interface SubPackageMetaValue {
369
428
  entries: string[];
370
429
  subPackage: SubPackage;
430
+ styleEntries?: SubPackageStyleEntry[];
431
+ watchSharedStyles?: boolean;
371
432
  }
372
433
 
373
434
  interface WxmlDep {
@@ -429,6 +490,9 @@ interface BuildOptions {
429
490
  interface BuildService {
430
491
  queue: PQueue;
431
492
  build: (options?: BuildOptions) => Promise<RolldownOutput | RolldownOutput[] | RolldownWatcher>;
493
+ buildIndependentBundle: (root: string, meta: SubPackageMetaValue) => Promise<RolldownOutput>;
494
+ getIndependentOutput: (root: string) => RolldownOutput | undefined;
495
+ invalidateIndependentOutput: (root: string) => void;
432
496
  }
433
497
 
434
498
  interface OutputExtensions {
@@ -613,6 +677,13 @@ interface SidecarWatcher {
613
677
  close: () => void | Promise<void>;
614
678
  }
615
679
 
680
+ interface AutoRoutesCandidateState {
681
+ base: string;
682
+ files: Set<string>;
683
+ hasScript: boolean;
684
+ hasTemplate: boolean;
685
+ jsonPath?: string;
686
+ }
616
687
  interface RuntimeState {
617
688
  autoRoutes: {
618
689
  routes: AutoRoutes;
@@ -623,6 +694,8 @@ interface RuntimeState {
623
694
  watchDirs: Set<string>;
624
695
  dirty: boolean;
625
696
  initialized: boolean;
697
+ candidates: Map<string, AutoRoutesCandidateState>;
698
+ needsFullRescan: boolean;
626
699
  };
627
700
  autoImport: {
628
701
  registry: Map<string, LocalAutoImportMatch>;
@@ -632,6 +705,9 @@ interface RuntimeState {
632
705
  build: {
633
706
  queue: PQueue;
634
707
  npmBuilt: boolean;
708
+ independent: {
709
+ outputs: Map<string, RolldownOutput>;
710
+ };
635
711
  };
636
712
  json: {
637
713
  cache: FileCache<any>;
@@ -645,6 +721,7 @@ interface RuntimeState {
645
721
  tokenMap: Map<string, ScanWxmlResult>;
646
722
  componentsMap: Map<string, ComponentsMap>;
647
723
  cache: FileCache<ScanWxmlResult>;
724
+ emittedCode: Map<string, string>;
648
725
  };
649
726
  scan: {
650
727
  subPackageMap: Map<string, SubPackageMetaValue>;
@@ -723,6 +800,7 @@ interface AutoImportService {
723
800
  awaitManifestWrites: () => Promise<void>;
724
801
  }
725
802
 
803
+ type AutoRoutesFileEvent = ChangeEvent | 'rename';
726
804
  interface AutoRoutesService {
727
805
  ensureFresh: () => Promise<void>;
728
806
  markDirty: () => void;
@@ -732,7 +810,7 @@ interface AutoRoutesService {
732
810
  getWatchFiles: () => Iterable<string>;
733
811
  getWatchDirectories: () => Iterable<string>;
734
812
  isRouteFile: (filePath: string) => boolean;
735
- handleFileChange: (filePath: string, event?: ChangeEvent) => Promise<void>;
813
+ handleFileChange: (filePath: string, event?: AutoRoutesFileEvent) => Promise<void>;
736
814
  isInitialized: () => boolean;
737
815
  isEnabled: () => boolean;
738
816
  }
@@ -775,4 +853,4 @@ declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig
775
853
  declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
776
854
  declare function defineConfig(config: UserConfigExport): UserConfigExport;
777
855
 
778
- export { type Alias as A, type BuildNpmPackageMeta as B, type CompilerContext as C, type ChunksConfig as D, type EnhanceWxmlOptions as E, type SubPackageMetaValue as F, type GenerateExtensionsOptions as G, type HandleWxmlOptions as H, type WxmlDep as I, type JsFormat as J, type ScanComponentItem as K, type LoadConfigOptions as L, type MpPlatform as M, type ComponentsMap as N, type BaseEntry as O, type ProjectConfig as P, type Entry as Q, type ResolvedAlias as R, type SubPackage as S, type AppEntry as T, type UserConfig as U, type PageEntry as V, type WeappViteConfig as W, type ComponentEntry as X, type EntryJsonFragment as Y, type WeappVitePluginApi as Z, type ChangeEvent as _, defineAppJson as a, definePageJson as b, defineComponentJson as c, defineConfig as d, defineSitemapJson as e, defineThemeJson as f, type AliasOptions as g, type GenerateDirsOptions as h, type GenerateFilenamesOptions as i, type GenerateFileType as j, type GenerateTemplateContext as k, type GenerateTemplateFileSource as l, type GenerateTemplateInlineSource as m, type GenerateTemplateFactory as n, type GenerateTemplate as o, type GenerateTemplateEntry as p, type GenerateTemplateScope as q, type GenerateTemplatesConfig as r, type GenerateOptions as s, type CopyOptions as t, type CopyGlobs as u, type WeappWebConfig as v, type AutoImportComponents as w, type ScanWxmlOptions as x, type EnhanceOptions as y, type SharedChunkStrategy as z };
856
+ export { type ComponentEntry as $, type Alias as A, type AutoImportComponents as B, type CompilerContext as C, type ScanWxmlOptions as D, type EnhanceWxmlOptions as E, type EnhanceOptions as F, type GenerateExtensionsOptions as G, type HandleWxmlOptions as H, type BuildNpmPackageMeta as I, type JsFormat as J, type SharedChunkStrategy as K, type LoadConfigOptions as L, type MpPlatform as M, type ChunksConfig as N, type SubPackageMetaValue as O, type ProjectConfig as P, type WxmlDep as Q, type ResolvedAlias as R, type SubPackage as S, type ScanComponentItem as T, type UserConfig as U, type ComponentsMap as V, type WeappViteConfig as W, type BaseEntry as X, type Entry as Y, type AppEntry as Z, type PageEntry as _, defineAppJson as a, type EntryJsonFragment as a0, type WeappVitePluginApi as a1, type ChangeEvent as a2, definePageJson as b, defineComponentJson as c, defineConfig as d, defineSitemapJson as e, defineThemeJson as f, type AliasOptions as g, type SubPackageStyleScope as h, type SubPackageStyleConfigObject as i, type SubPackageStyleConfigEntry as j, type SubPackageStyleEntry as k, type GenerateDirsOptions as l, type GenerateFilenamesOptions as m, type GenerateFileType as n, type GenerateTemplateContext as o, type GenerateTemplateFileSource as p, type GenerateTemplateInlineSource as q, type GenerateTemplateFactory as r, type GenerateTemplate as s, type GenerateTemplateEntry as t, type GenerateTemplateScope as u, type GenerateTemplatesConfig as v, type GenerateOptions as w, type CopyOptions as x, type CopyGlobs as y, type WeappWebConfig as z };
package/dist/config.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkDVVMF6NDcjs = require('./chunk-DVVMF6ND.cjs');
3
+ var _chunkACNTFTT2cjs = require('./chunk-ACNTFTT2.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkBT7FLFCCcjs = require('./chunk-BT7FLFCC.cjs');
11
- require('./chunk-OS76JPG2.cjs');
10
+ var _chunkZIRGPJR5cjs = require('./chunk-ZIRGPJR5.cjs');
11
+ require('./chunk-WWFEREWV.cjs');
12
12
 
13
13
 
14
14
 
@@ -16,4 +16,4 @@ require('./chunk-OS76JPG2.cjs');
16
16
 
17
17
 
18
18
 
19
- exports.defineAppJson = _chunkBT7FLFCCcjs.defineAppJson; exports.defineComponentJson = _chunkBT7FLFCCcjs.defineComponentJson; exports.defineConfig = _chunkDVVMF6NDcjs.defineConfig; exports.definePageJson = _chunkBT7FLFCCcjs.definePageJson; exports.defineSitemapJson = _chunkBT7FLFCCcjs.defineSitemapJson; exports.defineThemeJson = _chunkBT7FLFCCcjs.defineThemeJson;
19
+ exports.defineAppJson = _chunkZIRGPJR5cjs.defineAppJson; exports.defineComponentJson = _chunkZIRGPJR5cjs.defineComponentJson; exports.defineConfig = _chunkACNTFTT2cjs.defineConfig; exports.definePageJson = _chunkZIRGPJR5cjs.definePageJson; exports.defineSitemapJson = _chunkZIRGPJR5cjs.defineSitemapJson; exports.defineThemeJson = _chunkZIRGPJR5cjs.defineThemeJson;
package/dist/config.d.cts CHANGED
@@ -1,15 +1,15 @@
1
1
  export { UserConfig, UserConfigExport, UserConfigFnObject } from 'vite';
2
- export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-Qcwf5OzO.cjs';
2
+ export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-D7WbfUyN.cjs';
3
3
  export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
4
+ import '@weapp-vite/web';
4
5
  import 'rolldown';
5
- import './routes-C9hKJjXs.cjs';
6
- import './types-g_G_na7r.cjs';
7
6
  import 'tsdown';
8
- import '@weapp-vite/web';
9
7
  import 'vite-plugin-performance';
10
8
  import 'vite-tsconfig-paths';
9
+ import './types-3q1Qq6Fe.cjs';
11
10
  import 'p-queue';
12
11
  import 'package-manager-detector';
13
12
  import 'pkg-types';
14
13
  import 'node:buffer';
15
14
  import 'lru-cache';
15
+ import './routes-C9hKJjXs.cjs';
package/dist/config.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  export { UserConfig, UserConfigExport, UserConfigFnObject } from 'vite';
2
- export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-CUFqPmXh.js';
2
+ export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-BaoM7pt1.js';
3
3
  export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
4
+ import '@weapp-vite/web';
4
5
  import 'rolldown';
5
- import './routes-C9hKJjXs.js';
6
- import './types-g_G_na7r.js';
7
6
  import 'tsdown';
8
- import '@weapp-vite/web';
9
7
  import 'vite-plugin-performance';
10
8
  import 'vite-tsconfig-paths';
9
+ import './types-3q1Qq6Fe.js';
11
10
  import 'p-queue';
12
11
  import 'package-manager-detector';
13
12
  import 'pkg-types';
14
13
  import 'node:buffer';
15
14
  import 'lru-cache';
15
+ import './routes-C9hKJjXs.js';
package/dist/config.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  defineConfig
3
- } from "./chunk-HVMR6H5Z.mjs";
3
+ } from "./chunk-DG5WTO5V.mjs";
4
4
  import {
5
5
  defineAppJson,
6
6
  defineComponentJson,
7
7
  definePageJson,
8
8
  defineSitemapJson,
9
9
  defineThemeJson
10
- } from "./chunk-FUOZYLBR.mjs";
11
- import "./chunk-7MAZ2JUY.mjs";
10
+ } from "./chunk-JXSGMLN2.mjs";
11
+ import "./chunk-C5ZVOPAJ.mjs";
12
12
  export {
13
13
  defineAppJson,
14
14
  defineComponentJson,
package/dist/index.cjs CHANGED
@@ -1,24 +1,24 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkXMPAHTORcjs = require('./chunk-XMPAHTOR.cjs');
4
- require('./chunk-PONRZBHY.cjs');
3
+ var _chunk2Q7K5AR4cjs = require('./chunk-2Q7K5AR4.cjs');
4
+ require('./chunk-KE6RSOKX.cjs');
5
5
 
6
6
 
7
- var _chunkDVVMF6NDcjs = require('./chunk-DVVMF6ND.cjs');
7
+ var _chunkACNTFTT2cjs = require('./chunk-ACNTFTT2.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunkBT7FLFCCcjs = require('./chunk-BT7FLFCC.cjs');
15
- require('./chunk-U5ERJUOU.cjs');
14
+ var _chunkZIRGPJR5cjs = require('./chunk-ZIRGPJR5.cjs');
15
+ require('./chunk-EKHZHEQK.cjs');
16
16
 
17
17
 
18
- var _chunkOS76JPG2cjs = require('./chunk-OS76JPG2.cjs');
18
+ var _chunkWWFEREWVcjs = require('./chunk-WWFEREWV.cjs');
19
19
 
20
20
  // src/index.ts
21
- _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
21
+ _chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
22
22
 
23
23
 
24
24
 
@@ -27,4 +27,4 @@ _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
27
27
 
28
28
 
29
29
 
30
- exports.createCompilerContext = _chunkXMPAHTORcjs.createCompilerContext; exports.defineAppJson = _chunkBT7FLFCCcjs.defineAppJson; exports.defineComponentJson = _chunkBT7FLFCCcjs.defineComponentJson; exports.defineConfig = _chunkDVVMF6NDcjs.defineConfig; exports.definePageJson = _chunkBT7FLFCCcjs.definePageJson; exports.defineSitemapJson = _chunkBT7FLFCCcjs.defineSitemapJson; exports.defineThemeJson = _chunkBT7FLFCCcjs.defineThemeJson;
30
+ exports.createCompilerContext = _chunk2Q7K5AR4cjs.createCompilerContext; exports.defineAppJson = _chunkZIRGPJR5cjs.defineAppJson; exports.defineComponentJson = _chunkZIRGPJR5cjs.defineComponentJson; exports.defineConfig = _chunkACNTFTT2cjs.defineConfig; exports.definePageJson = _chunkZIRGPJR5cjs.definePageJson; exports.defineSitemapJson = _chunkZIRGPJR5cjs.defineSitemapJson; exports.defineThemeJson = _chunkZIRGPJR5cjs.defineThemeJson;
package/dist/index.d.cts CHANGED
@@ -1,19 +1,19 @@
1
- import { L as LoadConfigOptions, C as CompilerContext } from './config-Qcwf5OzO.cjs';
2
- export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-Qcwf5OzO.cjs';
1
+ import { L as LoadConfigOptions, C as CompilerContext } from './config-D7WbfUyN.cjs';
2
+ export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-D7WbfUyN.cjs';
3
3
  export { RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, WatchOptions as RolldownWatchOptions, RolldownWatcher } from 'rolldown';
4
4
  export { ConfigEnv, InlineConfig, Plugin, PluginOption, ResolvedConfig, UserConfig, UserConfigExport, UserConfigFnObject, ViteDevServer } from 'vite';
5
5
  export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
6
- import './routes-C9hKJjXs.cjs';
7
- import './types-g_G_na7r.cjs';
8
- import 'tsdown';
9
6
  import '@weapp-vite/web';
7
+ import 'tsdown';
10
8
  import 'vite-plugin-performance';
11
9
  import 'vite-tsconfig-paths';
10
+ import './types-3q1Qq6Fe.cjs';
12
11
  import 'p-queue';
13
12
  import 'package-manager-detector';
14
13
  import 'pkg-types';
15
14
  import 'node:buffer';
16
15
  import 'lru-cache';
16
+ import './routes-C9hKJjXs.cjs';
17
17
 
18
18
  declare function createCompilerContext(options?: Partial<LoadConfigOptions & {
19
19
  key?: string;
package/dist/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- import { L as LoadConfigOptions, C as CompilerContext } from './config-CUFqPmXh.js';
2
- export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-CUFqPmXh.js';
1
+ import { L as LoadConfigOptions, C as CompilerContext } from './config-BaoM7pt1.js';
2
+ export { W as WeappViteConfig, a as defineAppJson, c as defineComponentJson, d as defineConfig, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-BaoM7pt1.js';
3
3
  export { RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, WatchOptions as RolldownWatchOptions, RolldownWatcher } from 'rolldown';
4
4
  export { ConfigEnv, InlineConfig, Plugin, PluginOption, ResolvedConfig, UserConfig, UserConfigExport, UserConfigFnObject, ViteDevServer } from 'vite';
5
5
  export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
6
- import './routes-C9hKJjXs.js';
7
- import './types-g_G_na7r.js';
8
- import 'tsdown';
9
6
  import '@weapp-vite/web';
7
+ import 'tsdown';
10
8
  import 'vite-plugin-performance';
11
9
  import 'vite-tsconfig-paths';
10
+ import './types-3q1Qq6Fe.js';
12
11
  import 'p-queue';
13
12
  import 'package-manager-detector';
14
13
  import 'pkg-types';
15
14
  import 'node:buffer';
16
15
  import 'lru-cache';
16
+ import './routes-C9hKJjXs.js';
17
17
 
18
18
  declare function createCompilerContext(options?: Partial<LoadConfigOptions & {
19
19
  key?: string;
package/dist/index.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  createCompilerContext
3
- } from "./chunk-IFYXRQC3.mjs";
4
- import "./chunk-2BJRVKKW.mjs";
3
+ } from "./chunk-K2MHCVVB.mjs";
4
+ import "./chunk-2JQYFUSO.mjs";
5
5
  import {
6
6
  defineConfig
7
- } from "./chunk-HVMR6H5Z.mjs";
7
+ } from "./chunk-DG5WTO5V.mjs";
8
8
  import {
9
9
  defineAppJson,
10
10
  defineComponentJson,
11
11
  definePageJson,
12
12
  defineSitemapJson,
13
13
  defineThemeJson
14
- } from "./chunk-FUOZYLBR.mjs";
15
- import "./chunk-NANSUN4W.mjs";
14
+ } from "./chunk-JXSGMLN2.mjs";
15
+ import "./chunk-JMKI52G2.mjs";
16
16
  import {
17
17
  init_esm_shims
18
- } from "./chunk-7MAZ2JUY.mjs";
18
+ } from "./chunk-C5ZVOPAJ.mjs";
19
19
 
20
20
  // src/index.ts
21
21
  init_esm_shims();
package/dist/json.cjs CHANGED
@@ -4,12 +4,12 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkBT7FLFCCcjs = require('./chunk-BT7FLFCC.cjs');
8
- require('./chunk-OS76JPG2.cjs');
7
+ var _chunkZIRGPJR5cjs = require('./chunk-ZIRGPJR5.cjs');
8
+ require('./chunk-WWFEREWV.cjs');
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
14
 
15
- exports.defineAppJson = _chunkBT7FLFCCcjs.defineAppJson; exports.defineComponentJson = _chunkBT7FLFCCcjs.defineComponentJson; exports.definePageJson = _chunkBT7FLFCCcjs.definePageJson; exports.defineSitemapJson = _chunkBT7FLFCCcjs.defineSitemapJson; exports.defineThemeJson = _chunkBT7FLFCCcjs.defineThemeJson;
15
+ exports.defineAppJson = _chunkZIRGPJR5cjs.defineAppJson; exports.defineComponentJson = _chunkZIRGPJR5cjs.defineComponentJson; exports.definePageJson = _chunkZIRGPJR5cjs.definePageJson; exports.defineSitemapJson = _chunkZIRGPJR5cjs.defineSitemapJson; exports.defineThemeJson = _chunkZIRGPJR5cjs.defineThemeJson;
package/dist/json.d.cts CHANGED
@@ -1,15 +1,15 @@
1
1
  export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
2
- export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-Qcwf5OzO.cjs';
3
- import 'rolldown';
2
+ export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-D7WbfUyN.cjs';
4
3
  import 'vite';
5
- import './routes-C9hKJjXs.cjs';
6
- import './types-g_G_na7r.cjs';
7
- import 'tsdown';
8
4
  import '@weapp-vite/web';
5
+ import 'rolldown';
6
+ import 'tsdown';
9
7
  import 'vite-plugin-performance';
10
8
  import 'vite-tsconfig-paths';
9
+ import './types-3q1Qq6Fe.cjs';
11
10
  import 'p-queue';
12
11
  import 'package-manager-detector';
13
12
  import 'pkg-types';
14
13
  import 'node:buffer';
15
14
  import 'lru-cache';
15
+ import './routes-C9hKJjXs.cjs';
package/dist/json.d.ts CHANGED
@@ -1,15 +1,15 @@
1
1
  export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
2
- export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-CUFqPmXh.js';
3
- import 'rolldown';
2
+ export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-BaoM7pt1.js';
4
3
  import 'vite';
5
- import './routes-C9hKJjXs.js';
6
- import './types-g_G_na7r.js';
7
- import 'tsdown';
8
4
  import '@weapp-vite/web';
5
+ import 'rolldown';
6
+ import 'tsdown';
9
7
  import 'vite-plugin-performance';
10
8
  import 'vite-tsconfig-paths';
9
+ import './types-3q1Qq6Fe.js';
11
10
  import 'p-queue';
12
11
  import 'package-manager-detector';
13
12
  import 'pkg-types';
14
13
  import 'node:buffer';
15
14
  import 'lru-cache';
15
+ import './routes-C9hKJjXs.js';
package/dist/json.mjs CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  definePageJson,
5
5
  defineSitemapJson,
6
6
  defineThemeJson
7
- } from "./chunk-FUOZYLBR.mjs";
8
- import "./chunk-7MAZ2JUY.mjs";
7
+ } from "./chunk-JXSGMLN2.mjs";
8
+ import "./chunk-C5ZVOPAJ.mjs";
9
9
  export {
10
10
  defineAppJson,
11
11
  defineComponentJson,
@@ -22,4 +22,4 @@ interface Options {
22
22
  }
23
23
  type CreateResolver = (options?: Options) => Resolver;
24
24
 
25
- export type { CreateResolver as C, Options as O, ResolvedValue as R, Resolver as a };
25
+ export type { CreateResolver as C, Options as O, Resolver as R, ResolvedValue as a };
@@ -22,4 +22,4 @@ interface Options {
22
22
  }
23
23
  type CreateResolver = (options?: Options) => Resolver;
24
24
 
25
- export type { CreateResolver as C, Options as O, ResolvedValue as R, Resolver as a };
25
+ export type { CreateResolver as C, Options as O, Resolver as R, ResolvedValue as a };
package/dist/types.cjs CHANGED
@@ -1,22 +1,25 @@
1
- "use strict";require('./chunk-U5ERJUOU.cjs');
1
+ "use strict";require('./chunk-EKHZHEQK.cjs');
2
2
 
3
3
 
4
- var _chunkOS76JPG2cjs = require('./chunk-OS76JPG2.cjs');
4
+ var _chunkWWFEREWVcjs = require('./chunk-WWFEREWV.cjs');
5
5
 
6
6
  // src/types/index.ts
7
- _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
7
+ _chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
8
8
 
9
9
  // src/types/config.ts
10
- _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
10
+ _chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
11
11
 
12
12
  // src/types/context.ts
13
- _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
13
+ _chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
14
14
 
15
15
  // src/types/entry.ts
16
- _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
16
+ _chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
17
+
18
+ // src/types/errors.ts
19
+ _chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
17
20
 
18
21
  // src/types/plugin.ts
19
- _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
22
+ _chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
20
23
 
21
24
  // src/types/routes.ts
22
- _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
25
+ _chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
package/dist/types.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- export { A as Alias, g as AliasOptions, T as AppEntry, w as AutoImportComponents, O as BaseEntry, B as BuildNpmPackageMeta, _ as ChangeEvent, D as ChunksConfig, X as ComponentEntry, N as ComponentsMap, u as CopyGlobs, t as CopyOptions, y as EnhanceOptions, E as EnhanceWxmlOptions, Q as Entry, Y as EntryJsonFragment, h as GenerateDirsOptions, G as GenerateExtensionsOptions, j as GenerateFileType, i as GenerateFilenamesOptions, s as GenerateOptions, o as GenerateTemplate, k as GenerateTemplateContext, p as GenerateTemplateEntry, n as GenerateTemplateFactory, l as GenerateTemplateFileSource, m as GenerateTemplateInlineSource, q as GenerateTemplateScope, r as GenerateTemplatesConfig, H as HandleWxmlOptions, J as JsFormat, M as MpPlatform, V as PageEntry, P as ProjectConfig, R as ResolvedAlias, K as ScanComponentItem, x as ScanWxmlOptions, z as SharedChunkStrategy, S as SubPackage, F as SubPackageMetaValue, U as UserConfig, W as WeappViteConfig, Z as WeappVitePluginApi, v as WeappWebConfig, I as WxmlDep } from './config-Qcwf5OzO.cjs';
1
+ export { A as Alias, g as AliasOptions, Z as AppEntry, B as AutoImportComponents, X as BaseEntry, I as BuildNpmPackageMeta, a2 as ChangeEvent, N as ChunksConfig, $ as ComponentEntry, V as ComponentsMap, y as CopyGlobs, x as CopyOptions, F as EnhanceOptions, E as EnhanceWxmlOptions, Y as Entry, a0 as EntryJsonFragment, l as GenerateDirsOptions, G as GenerateExtensionsOptions, n as GenerateFileType, m as GenerateFilenamesOptions, w as GenerateOptions, s as GenerateTemplate, o as GenerateTemplateContext, t as GenerateTemplateEntry, r as GenerateTemplateFactory, p as GenerateTemplateFileSource, q as GenerateTemplateInlineSource, u as GenerateTemplateScope, v as GenerateTemplatesConfig, H as HandleWxmlOptions, J as JsFormat, M as MpPlatform, _ as PageEntry, P as ProjectConfig, R as ResolvedAlias, T as ScanComponentItem, D as ScanWxmlOptions, K as SharedChunkStrategy, S as SubPackage, O as SubPackageMetaValue, j as SubPackageStyleConfigEntry, i as SubPackageStyleConfigObject, k as SubPackageStyleEntry, h as SubPackageStyleScope, U as UserConfig, W as WeappViteConfig, a1 as WeappVitePluginApi, z as WeappWebConfig, Q as WxmlDep } from './config-D7WbfUyN.cjs';
2
2
  export { RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, WatchOptions as RolldownWatchOptions, RolldownWatcher } from 'rolldown';
3
3
  export { ConfigEnv, InlineConfig, Plugin, PluginOption, ResolvedConfig, ViteDevServer } from 'vite';
4
4
  export { A as AutoRoutes, a as AutoRoutesSubPackage } from './routes-C9hKJjXs.cjs';
5
- export { a as Resolver } from './types-g_G_na7r.cjs';
5
+ export { R as Resolver } from './types-3q1Qq6Fe.cjs';
6
6
  export { Options as NpmBuildOptions } from 'tsdown';
7
7
  import '@weapp-core/schematics';
8
8
  import '@weapp-vite/web';
@@ -13,3 +13,14 @@ import 'package-manager-detector';
13
13
  import 'pkg-types';
14
14
  import 'node:buffer';
15
15
  import 'lru-cache';
16
+
17
+ interface BindingErrorLike {
18
+ message?: string;
19
+ code?: string;
20
+ plugin?: string;
21
+ id?: string;
22
+ frame?: string;
23
+ stack?: string;
24
+ }
25
+
26
+ export type { BindingErrorLike };
package/dist/types.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { A as Alias, g as AliasOptions, T as AppEntry, w as AutoImportComponents, O as BaseEntry, B as BuildNpmPackageMeta, _ as ChangeEvent, D as ChunksConfig, X as ComponentEntry, N as ComponentsMap, u as CopyGlobs, t as CopyOptions, y as EnhanceOptions, E as EnhanceWxmlOptions, Q as Entry, Y as EntryJsonFragment, h as GenerateDirsOptions, G as GenerateExtensionsOptions, j as GenerateFileType, i as GenerateFilenamesOptions, s as GenerateOptions, o as GenerateTemplate, k as GenerateTemplateContext, p as GenerateTemplateEntry, n as GenerateTemplateFactory, l as GenerateTemplateFileSource, m as GenerateTemplateInlineSource, q as GenerateTemplateScope, r as GenerateTemplatesConfig, H as HandleWxmlOptions, J as JsFormat, M as MpPlatform, V as PageEntry, P as ProjectConfig, R as ResolvedAlias, K as ScanComponentItem, x as ScanWxmlOptions, z as SharedChunkStrategy, S as SubPackage, F as SubPackageMetaValue, U as UserConfig, W as WeappViteConfig, Z as WeappVitePluginApi, v as WeappWebConfig, I as WxmlDep } from './config-CUFqPmXh.js';
1
+ export { A as Alias, g as AliasOptions, Z as AppEntry, B as AutoImportComponents, X as BaseEntry, I as BuildNpmPackageMeta, a2 as ChangeEvent, N as ChunksConfig, $ as ComponentEntry, V as ComponentsMap, y as CopyGlobs, x as CopyOptions, F as EnhanceOptions, E as EnhanceWxmlOptions, Y as Entry, a0 as EntryJsonFragment, l as GenerateDirsOptions, G as GenerateExtensionsOptions, n as GenerateFileType, m as GenerateFilenamesOptions, w as GenerateOptions, s as GenerateTemplate, o as GenerateTemplateContext, t as GenerateTemplateEntry, r as GenerateTemplateFactory, p as GenerateTemplateFileSource, q as GenerateTemplateInlineSource, u as GenerateTemplateScope, v as GenerateTemplatesConfig, H as HandleWxmlOptions, J as JsFormat, M as MpPlatform, _ as PageEntry, P as ProjectConfig, R as ResolvedAlias, T as ScanComponentItem, D as ScanWxmlOptions, K as SharedChunkStrategy, S as SubPackage, O as SubPackageMetaValue, j as SubPackageStyleConfigEntry, i as SubPackageStyleConfigObject, k as SubPackageStyleEntry, h as SubPackageStyleScope, U as UserConfig, W as WeappViteConfig, a1 as WeappVitePluginApi, z as WeappWebConfig, Q as WxmlDep } from './config-BaoM7pt1.js';
2
2
  export { RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, WatchOptions as RolldownWatchOptions, RolldownWatcher } from 'rolldown';
3
3
  export { ConfigEnv, InlineConfig, Plugin, PluginOption, ResolvedConfig, ViteDevServer } from 'vite';
4
4
  export { A as AutoRoutes, a as AutoRoutesSubPackage } from './routes-C9hKJjXs.js';
5
- export { a as Resolver } from './types-g_G_na7r.js';
5
+ export { R as Resolver } from './types-3q1Qq6Fe.js';
6
6
  export { Options as NpmBuildOptions } from 'tsdown';
7
7
  import '@weapp-core/schematics';
8
8
  import '@weapp-vite/web';
@@ -13,3 +13,14 @@ import 'package-manager-detector';
13
13
  import 'pkg-types';
14
14
  import 'node:buffer';
15
15
  import 'lru-cache';
16
+
17
+ interface BindingErrorLike {
18
+ message?: string;
19
+ code?: string;
20
+ plugin?: string;
21
+ id?: string;
22
+ frame?: string;
23
+ stack?: string;
24
+ }
25
+
26
+ export type { BindingErrorLike };
package/dist/types.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import "./chunk-NANSUN4W.mjs";
1
+ import "./chunk-JMKI52G2.mjs";
2
2
  import {
3
3
  init_esm_shims
4
- } from "./chunk-7MAZ2JUY.mjs";
4
+ } from "./chunk-C5ZVOPAJ.mjs";
5
5
 
6
6
  // src/types/index.ts
7
7
  init_esm_shims();
@@ -15,6 +15,9 @@ init_esm_shims();
15
15
  // src/types/entry.ts
16
16
  init_esm_shims();
17
17
 
18
+ // src/types/errors.ts
19
+ init_esm_shims();
20
+
18
21
  // src/types/plugin.ts
19
22
  init_esm_shims();
20
23
 
package/dist/volar.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkOS76JPG2cjs = require('./chunk-OS76JPG2.cjs');
3
+ var _chunkWWFEREWVcjs = require('./chunk-WWFEREWV.cjs');
4
4
 
5
5
  // src/volar.ts
6
- _chunkOS76JPG2cjs.init_cjs_shims.call(void 0, );
6
+ _chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
7
7
  var _volar = require('@weapp-vite/volar'); var _volar2 = _interopRequireDefault(_volar);
8
8
  var volar_default = _volar2.default;
9
9
 
package/dist/volar.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  init_esm_shims
3
- } from "./chunk-7MAZ2JUY.mjs";
3
+ } from "./chunk-C5ZVOPAJ.mjs";
4
4
 
5
5
  // src/volar.ts
6
6
  init_esm_shims();