weapp-vite 5.5.0 → 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.
- package/dist/auto-import-components/resolvers.cjs +5 -5
- package/dist/auto-import-components/resolvers.d.cts +2 -2
- package/dist/auto-import-components/resolvers.d.ts +2 -2
- package/dist/auto-import-components/resolvers.mjs +1 -1
- package/dist/auto-routes.cjs +8 -8
- package/dist/auto-routes.mjs +4 -4
- package/dist/{chunk-T4MUKDMP.mjs → chunk-2JQYFUSO.mjs} +5185 -3829
- package/dist/{chunk-OWCDSB6F.cjs → chunk-2Q7K5AR4.cjs} +6 -6
- package/dist/{chunk-DVVMF6ND.cjs → chunk-ACNTFTT2.cjs} +2 -2
- package/dist/{chunk-7MAZ2JUY.mjs → chunk-C5ZVOPAJ.mjs} +10 -3
- package/dist/{chunk-HVMR6H5Z.mjs → chunk-DG5WTO5V.mjs} +1 -1
- package/dist/chunk-EKHZHEQK.cjs +6 -0
- package/dist/{chunk-NANSUN4W.mjs → chunk-JMKI52G2.mjs} +1 -1
- package/dist/{chunk-FUOZYLBR.mjs → chunk-JXSGMLN2.mjs} +1 -1
- package/dist/{chunk-QCLEMTCV.mjs → chunk-K2MHCVVB.mjs} +2 -2
- package/dist/{chunk-5GG5TEGR.cjs → chunk-KE6RSOKX.cjs} +5414 -4058
- package/dist/{chunk-OS76JPG2.cjs → chunk-WWFEREWV.cjs} +11 -4
- package/dist/{chunk-BT7FLFCC.cjs → chunk-ZIRGPJR5.cjs} +2 -2
- package/dist/cli.cjs +40 -40
- package/dist/cli.mjs +3 -3
- package/dist/{config-DepC4j8j.d.ts → config-BaoM7pt1.d.ts} +99 -7
- package/dist/{config-CzCzK7Jh.d.cts → config-D7WbfUyN.d.cts} +99 -7
- package/dist/config.cjs +4 -4
- package/dist/config.d.cts +4 -4
- package/dist/config.d.ts +4 -4
- package/dist/config.mjs +3 -3
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +6 -6
- package/dist/json.cjs +3 -3
- package/dist/json.d.cts +5 -5
- package/dist/json.d.ts +5 -5
- package/dist/json.mjs +2 -2
- package/dist/{types-g_G_na7r.d.ts → types-3q1Qq6Fe.d.cts} +1 -1
- package/dist/{types-g_G_na7r.d.cts → types-3q1Qq6Fe.d.ts} +1 -1
- package/dist/types.cjs +11 -8
- package/dist/types.d.cts +13 -2
- package/dist/types.d.ts +13 -2
- package/dist/types.mjs +5 -2
- package/dist/volar.cjs +2 -2
- package/dist/volar.mjs +1 -1
- package/package.json +12 -12
- 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 & {});
|
|
@@ -215,6 +265,11 @@ interface ChunksConfig {
|
|
|
215
265
|
* @default 'duplicate'
|
|
216
266
|
*/
|
|
217
267
|
sharedStrategy?: SharedChunkStrategy;
|
|
268
|
+
/**
|
|
269
|
+
* @description 是否输出分包优化日志,帮助确认共享模块被复制或回退的位置
|
|
270
|
+
* @default true
|
|
271
|
+
*/
|
|
272
|
+
logOptimization?: boolean;
|
|
218
273
|
}
|
|
219
274
|
interface WeappViteConfig {
|
|
220
275
|
/**
|
|
@@ -277,6 +332,15 @@ interface WeappViteConfig {
|
|
|
277
332
|
*/
|
|
278
333
|
subPackages?: Record<string, Pick<SubPackage, 'independent' | 'dependencies' | 'inlineConfig'> & {
|
|
279
334
|
autoImportComponents?: AutoImportComponents;
|
|
335
|
+
/** 分包文件变更时是否强制重新生成共享样式产物,默认启用 */
|
|
336
|
+
watchSharedStyles?: boolean;
|
|
337
|
+
/**
|
|
338
|
+
* 分包共享样式入口,支持传入一个或多个 `wxss`/`css` 文件路径
|
|
339
|
+
* - 相对路径默认基于当前分包的 `root`
|
|
340
|
+
* - 也可以传入绝对路径或相对 `srcRoot` 的路径
|
|
341
|
+
* - 支持传入对象配置 `scope`/`include`/`exclude` 精准控制注入范围
|
|
342
|
+
*/
|
|
343
|
+
styles?: SubPackageStyleConfigEntry | SubPackageStyleConfigEntry[];
|
|
280
344
|
}>;
|
|
281
345
|
/**
|
|
282
346
|
* 需要被额外包括的资源
|
|
@@ -363,6 +427,8 @@ interface ProjectConfig {
|
|
|
363
427
|
interface SubPackageMetaValue {
|
|
364
428
|
entries: string[];
|
|
365
429
|
subPackage: SubPackage;
|
|
430
|
+
styleEntries?: SubPackageStyleEntry[];
|
|
431
|
+
watchSharedStyles?: boolean;
|
|
366
432
|
}
|
|
367
433
|
|
|
368
434
|
interface WxmlDep {
|
|
@@ -424,6 +490,9 @@ interface BuildOptions {
|
|
|
424
490
|
interface BuildService {
|
|
425
491
|
queue: PQueue;
|
|
426
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;
|
|
427
496
|
}
|
|
428
497
|
|
|
429
498
|
interface OutputExtensions {
|
|
@@ -477,6 +546,7 @@ interface ConfigService {
|
|
|
477
546
|
mergeWorkers: (...configs: Partial<InlineConfig>[]) => InlineConfig;
|
|
478
547
|
merge: (subPackageMeta?: SubPackageMetaValue, ...configs: Partial<InlineConfig | undefined>[]) => InlineConfig;
|
|
479
548
|
mergeWeb: (...configs: Partial<InlineConfig | undefined>[]) => InlineConfig | undefined;
|
|
549
|
+
mergeInlineConfig: (...configs: Partial<InlineConfig>[]) => InlineConfig;
|
|
480
550
|
readonly defineImportMetaEnv: Record<string, any>;
|
|
481
551
|
readonly cwd: string;
|
|
482
552
|
readonly isDev: boolean;
|
|
@@ -512,6 +582,12 @@ interface ResolvedWeappWebConfig {
|
|
|
512
582
|
source?: WeappWebConfig;
|
|
513
583
|
}
|
|
514
584
|
|
|
585
|
+
interface JsonResolvableEntry {
|
|
586
|
+
json?: any;
|
|
587
|
+
jsonPath?: string;
|
|
588
|
+
type?: 'app' | 'page' | 'component' | 'plugin';
|
|
589
|
+
}
|
|
590
|
+
|
|
515
591
|
type HashInput = string | Buffer;
|
|
516
592
|
declare class FileCache<T extends object> {
|
|
517
593
|
cache: LRUCache<string, T>;
|
|
@@ -528,7 +604,7 @@ declare class FileCache<T extends object> {
|
|
|
528
604
|
|
|
529
605
|
interface JsonService {
|
|
530
606
|
read: (filepath: string) => Promise<any>;
|
|
531
|
-
resolve: (entry:
|
|
607
|
+
resolve: (entry: JsonResolvableEntry) => string | undefined;
|
|
532
608
|
cache: FileCache<any>;
|
|
533
609
|
}
|
|
534
610
|
|
|
@@ -601,6 +677,13 @@ interface SidecarWatcher {
|
|
|
601
677
|
close: () => void | Promise<void>;
|
|
602
678
|
}
|
|
603
679
|
|
|
680
|
+
interface AutoRoutesCandidateState {
|
|
681
|
+
base: string;
|
|
682
|
+
files: Set<string>;
|
|
683
|
+
hasScript: boolean;
|
|
684
|
+
hasTemplate: boolean;
|
|
685
|
+
jsonPath?: string;
|
|
686
|
+
}
|
|
604
687
|
interface RuntimeState {
|
|
605
688
|
autoRoutes: {
|
|
606
689
|
routes: AutoRoutes;
|
|
@@ -611,6 +694,8 @@ interface RuntimeState {
|
|
|
611
694
|
watchDirs: Set<string>;
|
|
612
695
|
dirty: boolean;
|
|
613
696
|
initialized: boolean;
|
|
697
|
+
candidates: Map<string, AutoRoutesCandidateState>;
|
|
698
|
+
needsFullRescan: boolean;
|
|
614
699
|
};
|
|
615
700
|
autoImport: {
|
|
616
701
|
registry: Map<string, LocalAutoImportMatch>;
|
|
@@ -620,6 +705,9 @@ interface RuntimeState {
|
|
|
620
705
|
build: {
|
|
621
706
|
queue: PQueue;
|
|
622
707
|
npmBuilt: boolean;
|
|
708
|
+
independent: {
|
|
709
|
+
outputs: Map<string, RolldownOutput>;
|
|
710
|
+
};
|
|
623
711
|
};
|
|
624
712
|
json: {
|
|
625
713
|
cache: FileCache<any>;
|
|
@@ -633,12 +721,14 @@ interface RuntimeState {
|
|
|
633
721
|
tokenMap: Map<string, ScanWxmlResult>;
|
|
634
722
|
componentsMap: Map<string, ComponentsMap>;
|
|
635
723
|
cache: FileCache<ScanWxmlResult>;
|
|
724
|
+
emittedCode: Map<string, string>;
|
|
636
725
|
};
|
|
637
726
|
scan: {
|
|
638
727
|
subPackageMap: Map<string, SubPackageMetaValue>;
|
|
639
728
|
independentSubPackageMap: Map<string, SubPackageMetaValue>;
|
|
640
729
|
appEntry?: AppEntry;
|
|
641
730
|
pluginJson?: Plugin;
|
|
731
|
+
pluginJsonPath?: string;
|
|
642
732
|
isDirty: boolean;
|
|
643
733
|
independentDirtyRoots: Set<string>;
|
|
644
734
|
};
|
|
@@ -653,6 +743,7 @@ interface RuntimeState {
|
|
|
653
743
|
interface ScanService {
|
|
654
744
|
appEntry?: AppEntry;
|
|
655
745
|
pluginJson?: Plugin;
|
|
746
|
+
pluginJsonPath?: string;
|
|
656
747
|
subPackageMap: Map<string, SubPackageMetaValue>;
|
|
657
748
|
independentSubPackageMap: Map<string, SubPackageMetaValue>;
|
|
658
749
|
loadAppEntry: () => Promise<AppEntry>;
|
|
@@ -709,6 +800,7 @@ interface AutoImportService {
|
|
|
709
800
|
awaitManifestWrites: () => Promise<void>;
|
|
710
801
|
}
|
|
711
802
|
|
|
803
|
+
type AutoRoutesFileEvent = ChangeEvent | 'rename';
|
|
712
804
|
interface AutoRoutesService {
|
|
713
805
|
ensureFresh: () => Promise<void>;
|
|
714
806
|
markDirty: () => void;
|
|
@@ -718,7 +810,7 @@ interface AutoRoutesService {
|
|
|
718
810
|
getWatchFiles: () => Iterable<string>;
|
|
719
811
|
getWatchDirectories: () => Iterable<string>;
|
|
720
812
|
isRouteFile: (filePath: string) => boolean;
|
|
721
|
-
handleFileChange: (filePath: string, event?:
|
|
813
|
+
handleFileChange: (filePath: string, event?: AutoRoutesFileEvent) => Promise<void>;
|
|
722
814
|
isInitialized: () => boolean;
|
|
723
815
|
isEnabled: () => boolean;
|
|
724
816
|
}
|
|
@@ -761,4 +853,4 @@ declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig
|
|
|
761
853
|
declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
|
|
762
854
|
declare function defineConfig(config: UserConfigExport): UserConfigExport;
|
|
763
855
|
|
|
764
|
-
export { type Alias as A, type
|
|
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
|
|
3
|
+
var _chunkACNTFTT2cjs = require('./chunk-ACNTFTT2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
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 =
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
11
|
-
import "./chunk-
|
|
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
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk2Q7K5AR4cjs = require('./chunk-2Q7K5AR4.cjs');
|
|
4
|
+
require('./chunk-KE6RSOKX.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkACNTFTT2cjs = require('./chunk-ACNTFTT2.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var _chunkZIRGPJR5cjs = require('./chunk-ZIRGPJR5.cjs');
|
|
15
|
+
require('./chunk-EKHZHEQK.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkWWFEREWVcjs = require('./chunk-WWFEREWV.cjs');
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
|
-
|
|
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 =
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-K2MHCVVB.mjs";
|
|
4
|
+
import "./chunk-2JQYFUSO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
defineConfig
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-JXSGMLN2.mjs";
|
|
15
|
+
import "./chunk-JMKI52G2.mjs";
|
|
16
16
|
import {
|
|
17
17
|
init_esm_shims
|
|
18
|
-
} from "./chunk-
|
|
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
|
|
8
|
-
require('./chunk-
|
|
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 =
|
|
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-
|
|
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-
|
|
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
package/dist/types.cjs
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
"use strict";require('./chunk-
|
|
1
|
+
"use strict";require('./chunk-EKHZHEQK.cjs');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWWFEREWVcjs = require('./chunk-WWFEREWV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/types/index.ts
|
|
7
|
-
|
|
7
|
+
_chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
|
|
8
8
|
|
|
9
9
|
// src/types/config.ts
|
|
10
|
-
|
|
10
|
+
_chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
|
|
11
11
|
|
|
12
12
|
// src/types/context.ts
|
|
13
|
-
|
|
13
|
+
_chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
|
|
14
14
|
|
|
15
15
|
// src/types/entry.ts
|
|
16
|
-
|
|
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
|
-
|
|
22
|
+
_chunkWWFEREWVcjs.init_cjs_shims.call(void 0, );
|
|
20
23
|
|
|
21
24
|
// src/types/routes.ts
|
|
22
|
-
|
|
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,
|
|
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 {
|
|
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,
|
|
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 {
|
|
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-
|
|
1
|
+
import "./chunk-JMKI52G2.mjs";
|
|
2
2
|
import {
|
|
3
3
|
init_esm_shims
|
|
4
|
-
} from "./chunk-
|
|
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
|
|