weapp-vite 5.7.2 → 5.9.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-routes.cjs +2 -2
- package/dist/auto-routes.mjs +1 -1
- package/dist/{chunk-3WGK7INY.mjs → chunk-7HMGYHVJ.mjs} +1 -1
- package/dist/{chunk-AUQJOLJS.cjs → chunk-7NTZAAMD.cjs} +4 -4
- package/dist/{chunk-HKSOVHNE.cjs → chunk-CFTSVRD4.cjs} +421 -239
- package/dist/{chunk-FSDX3XLK.mjs → chunk-JCCRRTKA.mjs} +190 -8
- package/dist/cli.cjs +55 -55
- package/dist/cli.mjs +2 -2
- package/dist/{config-C-oMiscN.d.cts → config-C8y2cWbg.d.cts} +23 -21
- package/dist/{config-CbKHc1kT.d.ts → config-CRwMOjkF.d.ts} +23 -21
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/json.d.cts +1 -1
- package/dist/json.d.ts +1 -1
- package/dist/types.d.cts +2 -2
- package/dist/types.d.ts +2 -2
- package/modules/analyze-dashboard/assets/vue.js +8 -2
- package/package.json +8 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { InlineConfig, UserConfig as UserConfig$1, ViteDevServer, build, UserConfigFnObject, UserConfigExport } from 'vite';
|
|
1
|
+
import { InlineConfig as InlineConfig$1, UserConfig as UserConfig$1, ViteDevServer, build, UserConfigFnObject, UserConfigExport } from 'vite';
|
|
2
2
|
import { GenerateType, Component, Theme, Sitemap, App, Page, Plugin } from '@weapp-core/schematics';
|
|
3
3
|
import { WeappWebPluginOptions } from '@weapp-vite/web';
|
|
4
4
|
import { InputOption, RolldownOutput, RolldownWatcher } from 'rolldown';
|
|
5
|
-
import {
|
|
5
|
+
import { InlineConfig } from 'tsdown';
|
|
6
6
|
import { WrapPluginOptions } from 'vite-plugin-performance';
|
|
7
7
|
import { PluginOptions } from 'vite-tsconfig-paths';
|
|
8
8
|
import { R as Resolver, a as ResolvedValue } from './types-3q1Qq6Fe.cjs';
|
|
@@ -55,7 +55,7 @@ interface SubPackage {
|
|
|
55
55
|
entry?: string;
|
|
56
56
|
name?: string;
|
|
57
57
|
dependencies?: (string | RegExp)[];
|
|
58
|
-
inlineConfig?: Partial<InlineConfig>;
|
|
58
|
+
inlineConfig?: Partial<InlineConfig$1>;
|
|
59
59
|
}
|
|
60
60
|
type SubPackageStyleScope = 'all' | 'pages' | 'components';
|
|
61
61
|
interface SubPackageStyleConfigObject {
|
|
@@ -195,7 +195,7 @@ interface WeappWebConfig {
|
|
|
195
195
|
/**
|
|
196
196
|
* @description 额外合并到 Web 构建中的 Vite 内联配置
|
|
197
197
|
*/
|
|
198
|
-
vite?: InlineConfig;
|
|
198
|
+
vite?: InlineConfig$1;
|
|
199
199
|
}
|
|
200
200
|
interface AutoImportComponents {
|
|
201
201
|
/**
|
|
@@ -228,6 +228,7 @@ interface AutoImportComponents {
|
|
|
228
228
|
*/
|
|
229
229
|
htmlCustomData?: boolean | string;
|
|
230
230
|
}
|
|
231
|
+
type AutoImportComponentsOption = AutoImportComponents | false;
|
|
231
232
|
type EnhanceWxmlOptions = ScanWxmlOptions & HandleWxmlOptions;
|
|
232
233
|
interface ScanWxmlOptions {
|
|
233
234
|
excludeComponent?: (tagName: string) => boolean;
|
|
@@ -249,7 +250,7 @@ interface EnhanceOptions {
|
|
|
249
250
|
/**
|
|
250
251
|
* 自动导入小程序组件
|
|
251
252
|
*/
|
|
252
|
-
autoImportComponents?:
|
|
253
|
+
autoImportComponents?: AutoImportComponentsOption;
|
|
253
254
|
}
|
|
254
255
|
interface BuildNpmPackageMeta {
|
|
255
256
|
name: string;
|
|
@@ -322,7 +323,7 @@ interface WeappViteConfig {
|
|
|
322
323
|
/**
|
|
323
324
|
* @description 构建 npm 的配置,可以配置这个选项给 tsdown,让不同的包走不同的配置
|
|
324
325
|
*/
|
|
325
|
-
buildOptions?: (options:
|
|
326
|
+
buildOptions?: (options: InlineConfig, pkgMeta: BuildNpmPackageMeta) => InlineConfig | undefined;
|
|
326
327
|
};
|
|
327
328
|
/**
|
|
328
329
|
* @group 生成脚手架配置
|
|
@@ -341,7 +342,7 @@ interface WeappViteConfig {
|
|
|
341
342
|
* 可以设置 key: 为 root, value: {independent:true} 来强制启用 独立的 rollup 编译上下文
|
|
342
343
|
*/
|
|
343
344
|
subPackages?: Record<string, Pick<SubPackage, 'independent' | 'dependencies' | 'inlineConfig'> & {
|
|
344
|
-
autoImportComponents?:
|
|
345
|
+
autoImportComponents?: AutoImportComponentsOption;
|
|
345
346
|
/** 分包文件变更时是否强制重新生成共享样式产物,默认启用 */
|
|
346
347
|
watchSharedStyles?: boolean;
|
|
347
348
|
/**
|
|
@@ -394,7 +395,7 @@ interface WeappViteConfig {
|
|
|
394
395
|
/**
|
|
395
396
|
* 自动导入小程序组件
|
|
396
397
|
*/
|
|
397
|
-
autoImportComponents?:
|
|
398
|
+
autoImportComponents?: AutoImportComponentsOption;
|
|
398
399
|
/**
|
|
399
400
|
* @deprecated 请改用顶层的 `wxml`、`wxs` 与 `autoImportComponents`
|
|
400
401
|
* 增强配置
|
|
@@ -437,6 +438,7 @@ interface ProjectConfig {
|
|
|
437
438
|
interface SubPackageMetaValue {
|
|
438
439
|
entries: string[];
|
|
439
440
|
subPackage: SubPackage;
|
|
441
|
+
autoImportComponents?: AutoImportComponentsOption;
|
|
440
442
|
styleEntries?: SubPackageStyleEntry[];
|
|
441
443
|
watchSharedStyles?: boolean;
|
|
442
444
|
}
|
|
@@ -517,11 +519,11 @@ interface LoadConfigOptions {
|
|
|
517
519
|
cwd: string;
|
|
518
520
|
isDev: boolean;
|
|
519
521
|
mode: string;
|
|
520
|
-
inlineConfig?: InlineConfig;
|
|
522
|
+
inlineConfig?: InlineConfig$1;
|
|
521
523
|
configFile?: string;
|
|
522
524
|
}
|
|
523
525
|
interface LoadConfigResult {
|
|
524
|
-
config: InlineConfig;
|
|
526
|
+
config: InlineConfig$1;
|
|
525
527
|
aliasEntries: ResolvedAlias[];
|
|
526
528
|
outputExtensions: OutputExtensions;
|
|
527
529
|
packageJson: PackageJson;
|
|
@@ -553,17 +555,17 @@ interface ConfigService {
|
|
|
553
555
|
packageInfo: PackageInfo;
|
|
554
556
|
setDefineEnv: (key: string, value: any) => void;
|
|
555
557
|
load: (options?: Partial<LoadConfigOptions>) => Promise<LoadConfigResult>;
|
|
556
|
-
mergeWorkers: (...configs: Partial<InlineConfig>[]) => InlineConfig;
|
|
557
|
-
merge: (subPackageMeta?: SubPackageMetaValue, ...configs: Partial<InlineConfig | undefined>[]) => InlineConfig;
|
|
558
|
-
mergeWeb: (...configs: Partial<InlineConfig | undefined>[]) => InlineConfig | undefined;
|
|
559
|
-
mergeInlineConfig: (...configs: Partial<InlineConfig>[]) => InlineConfig;
|
|
558
|
+
mergeWorkers: (...configs: Partial<InlineConfig$1>[]) => InlineConfig$1;
|
|
559
|
+
merge: (subPackageMeta?: SubPackageMetaValue, ...configs: Partial<InlineConfig$1 | undefined>[]) => InlineConfig$1;
|
|
560
|
+
mergeWeb: (...configs: Partial<InlineConfig$1 | undefined>[]) => InlineConfig$1 | undefined;
|
|
561
|
+
mergeInlineConfig: (...configs: Partial<InlineConfig$1>[]) => InlineConfig$1;
|
|
560
562
|
readonly defineImportMetaEnv: Record<string, any>;
|
|
561
563
|
readonly cwd: string;
|
|
562
564
|
readonly isDev: boolean;
|
|
563
565
|
readonly mpDistRoot: string;
|
|
564
566
|
readonly outDir: string;
|
|
565
|
-
readonly inlineConfig: InlineConfig;
|
|
566
|
-
readonly weappViteConfig: NonNullable<InlineConfig['weapp']>;
|
|
567
|
+
readonly inlineConfig: InlineConfig$1;
|
|
568
|
+
readonly weappViteConfig: NonNullable<InlineConfig$1['weapp']>;
|
|
567
569
|
readonly packageJson: PackageJson;
|
|
568
570
|
readonly projectConfig: Record<string, any>;
|
|
569
571
|
readonly srcRoot: string;
|
|
@@ -588,7 +590,7 @@ interface ResolvedWeappWebConfig {
|
|
|
588
590
|
pluginOptions: Omit<WeappWebPluginOptions, 'srcDir'> & {
|
|
589
591
|
srcDir: string;
|
|
590
592
|
};
|
|
591
|
-
userConfig?: InlineConfig;
|
|
593
|
+
userConfig?: InlineConfig$1;
|
|
592
594
|
source?: WeappWebConfig;
|
|
593
595
|
}
|
|
594
596
|
|
|
@@ -629,7 +631,7 @@ interface NpmService {
|
|
|
629
631
|
bundleBuild: (args: {
|
|
630
632
|
entry: InputOption;
|
|
631
633
|
name: string;
|
|
632
|
-
options?:
|
|
634
|
+
options?: InlineConfig;
|
|
633
635
|
outDir: string;
|
|
634
636
|
}) => Promise<void>;
|
|
635
637
|
copyBuild: (args: {
|
|
@@ -640,14 +642,14 @@ interface NpmService {
|
|
|
640
642
|
buildPackage: (args: {
|
|
641
643
|
dep: string;
|
|
642
644
|
outDir: string;
|
|
643
|
-
options?:
|
|
645
|
+
options?: InlineConfig;
|
|
644
646
|
isDependenciesCacheOutdate: boolean;
|
|
645
647
|
}) => Promise<void>;
|
|
646
648
|
getPackNpmRelationList: () => {
|
|
647
649
|
packageJsonPath: string;
|
|
648
650
|
miniprogramNpmDistDir: string;
|
|
649
651
|
}[];
|
|
650
|
-
build: (options?:
|
|
652
|
+
build: (options?: InlineConfig) => Promise<void>;
|
|
651
653
|
}
|
|
652
654
|
|
|
653
655
|
interface Token {
|
|
@@ -867,4 +869,4 @@ declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig
|
|
|
867
869
|
declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
|
|
868
870
|
declare function defineConfig(config: UserConfigExport): UserConfigExport;
|
|
869
871
|
|
|
870
|
-
export { type
|
|
872
|
+
export { type PageEntry as $, type Alias as A, type AutoImportComponents as B, type CompilerContext as C, type AutoImportComponentsOption as D, type EnhanceWxmlOptions as E, type ScanWxmlOptions as F, type GenerateExtensionsOptions as G, type HandleWxmlOptions as H, type EnhanceOptions as I, type BuildNpmPackageMeta as J, type JsFormat as K, type LoadConfigOptions as L, type MpPlatform as M, type SharedChunkStrategy as N, type ChunksConfig as O, type ProjectConfig as P, type SubPackageMetaValue as Q, type ResolvedAlias as R, type SubPackage as S, type WxmlDep as T, type UserConfig as U, type ScanComponentItem as V, type WeappViteConfig as W, type ComponentsMap as X, type BaseEntry as Y, type Entry as Z, type AppEntry as _, defineAppJson as a, type ComponentEntry as a0, type EntryJsonFragment as a1, type WeappVitePluginApi as a2, type ChangeEvent as a3, 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 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { InlineConfig, UserConfig as UserConfig$1, ViteDevServer, build, UserConfigFnObject, UserConfigExport } from 'vite';
|
|
1
|
+
import { InlineConfig as InlineConfig$1, UserConfig as UserConfig$1, ViteDevServer, build, UserConfigFnObject, UserConfigExport } from 'vite';
|
|
2
2
|
import { GenerateType, Component, Theme, Sitemap, App, Page, Plugin } from '@weapp-core/schematics';
|
|
3
3
|
import { WeappWebPluginOptions } from '@weapp-vite/web';
|
|
4
4
|
import { InputOption, RolldownOutput, RolldownWatcher } from 'rolldown';
|
|
5
|
-
import {
|
|
5
|
+
import { InlineConfig } from 'tsdown';
|
|
6
6
|
import { WrapPluginOptions } from 'vite-plugin-performance';
|
|
7
7
|
import { PluginOptions } from 'vite-tsconfig-paths';
|
|
8
8
|
import { R as Resolver, a as ResolvedValue } from './types-3q1Qq6Fe.js';
|
|
@@ -55,7 +55,7 @@ interface SubPackage {
|
|
|
55
55
|
entry?: string;
|
|
56
56
|
name?: string;
|
|
57
57
|
dependencies?: (string | RegExp)[];
|
|
58
|
-
inlineConfig?: Partial<InlineConfig>;
|
|
58
|
+
inlineConfig?: Partial<InlineConfig$1>;
|
|
59
59
|
}
|
|
60
60
|
type SubPackageStyleScope = 'all' | 'pages' | 'components';
|
|
61
61
|
interface SubPackageStyleConfigObject {
|
|
@@ -195,7 +195,7 @@ interface WeappWebConfig {
|
|
|
195
195
|
/**
|
|
196
196
|
* @description 额外合并到 Web 构建中的 Vite 内联配置
|
|
197
197
|
*/
|
|
198
|
-
vite?: InlineConfig;
|
|
198
|
+
vite?: InlineConfig$1;
|
|
199
199
|
}
|
|
200
200
|
interface AutoImportComponents {
|
|
201
201
|
/**
|
|
@@ -228,6 +228,7 @@ interface AutoImportComponents {
|
|
|
228
228
|
*/
|
|
229
229
|
htmlCustomData?: boolean | string;
|
|
230
230
|
}
|
|
231
|
+
type AutoImportComponentsOption = AutoImportComponents | false;
|
|
231
232
|
type EnhanceWxmlOptions = ScanWxmlOptions & HandleWxmlOptions;
|
|
232
233
|
interface ScanWxmlOptions {
|
|
233
234
|
excludeComponent?: (tagName: string) => boolean;
|
|
@@ -249,7 +250,7 @@ interface EnhanceOptions {
|
|
|
249
250
|
/**
|
|
250
251
|
* 自动导入小程序组件
|
|
251
252
|
*/
|
|
252
|
-
autoImportComponents?:
|
|
253
|
+
autoImportComponents?: AutoImportComponentsOption;
|
|
253
254
|
}
|
|
254
255
|
interface BuildNpmPackageMeta {
|
|
255
256
|
name: string;
|
|
@@ -322,7 +323,7 @@ interface WeappViteConfig {
|
|
|
322
323
|
/**
|
|
323
324
|
* @description 构建 npm 的配置,可以配置这个选项给 tsdown,让不同的包走不同的配置
|
|
324
325
|
*/
|
|
325
|
-
buildOptions?: (options:
|
|
326
|
+
buildOptions?: (options: InlineConfig, pkgMeta: BuildNpmPackageMeta) => InlineConfig | undefined;
|
|
326
327
|
};
|
|
327
328
|
/**
|
|
328
329
|
* @group 生成脚手架配置
|
|
@@ -341,7 +342,7 @@ interface WeappViteConfig {
|
|
|
341
342
|
* 可以设置 key: 为 root, value: {independent:true} 来强制启用 独立的 rollup 编译上下文
|
|
342
343
|
*/
|
|
343
344
|
subPackages?: Record<string, Pick<SubPackage, 'independent' | 'dependencies' | 'inlineConfig'> & {
|
|
344
|
-
autoImportComponents?:
|
|
345
|
+
autoImportComponents?: AutoImportComponentsOption;
|
|
345
346
|
/** 分包文件变更时是否强制重新生成共享样式产物,默认启用 */
|
|
346
347
|
watchSharedStyles?: boolean;
|
|
347
348
|
/**
|
|
@@ -394,7 +395,7 @@ interface WeappViteConfig {
|
|
|
394
395
|
/**
|
|
395
396
|
* 自动导入小程序组件
|
|
396
397
|
*/
|
|
397
|
-
autoImportComponents?:
|
|
398
|
+
autoImportComponents?: AutoImportComponentsOption;
|
|
398
399
|
/**
|
|
399
400
|
* @deprecated 请改用顶层的 `wxml`、`wxs` 与 `autoImportComponents`
|
|
400
401
|
* 增强配置
|
|
@@ -437,6 +438,7 @@ interface ProjectConfig {
|
|
|
437
438
|
interface SubPackageMetaValue {
|
|
438
439
|
entries: string[];
|
|
439
440
|
subPackage: SubPackage;
|
|
441
|
+
autoImportComponents?: AutoImportComponentsOption;
|
|
440
442
|
styleEntries?: SubPackageStyleEntry[];
|
|
441
443
|
watchSharedStyles?: boolean;
|
|
442
444
|
}
|
|
@@ -517,11 +519,11 @@ interface LoadConfigOptions {
|
|
|
517
519
|
cwd: string;
|
|
518
520
|
isDev: boolean;
|
|
519
521
|
mode: string;
|
|
520
|
-
inlineConfig?: InlineConfig;
|
|
522
|
+
inlineConfig?: InlineConfig$1;
|
|
521
523
|
configFile?: string;
|
|
522
524
|
}
|
|
523
525
|
interface LoadConfigResult {
|
|
524
|
-
config: InlineConfig;
|
|
526
|
+
config: InlineConfig$1;
|
|
525
527
|
aliasEntries: ResolvedAlias[];
|
|
526
528
|
outputExtensions: OutputExtensions;
|
|
527
529
|
packageJson: PackageJson;
|
|
@@ -553,17 +555,17 @@ interface ConfigService {
|
|
|
553
555
|
packageInfo: PackageInfo;
|
|
554
556
|
setDefineEnv: (key: string, value: any) => void;
|
|
555
557
|
load: (options?: Partial<LoadConfigOptions>) => Promise<LoadConfigResult>;
|
|
556
|
-
mergeWorkers: (...configs: Partial<InlineConfig>[]) => InlineConfig;
|
|
557
|
-
merge: (subPackageMeta?: SubPackageMetaValue, ...configs: Partial<InlineConfig | undefined>[]) => InlineConfig;
|
|
558
|
-
mergeWeb: (...configs: Partial<InlineConfig | undefined>[]) => InlineConfig | undefined;
|
|
559
|
-
mergeInlineConfig: (...configs: Partial<InlineConfig>[]) => InlineConfig;
|
|
558
|
+
mergeWorkers: (...configs: Partial<InlineConfig$1>[]) => InlineConfig$1;
|
|
559
|
+
merge: (subPackageMeta?: SubPackageMetaValue, ...configs: Partial<InlineConfig$1 | undefined>[]) => InlineConfig$1;
|
|
560
|
+
mergeWeb: (...configs: Partial<InlineConfig$1 | undefined>[]) => InlineConfig$1 | undefined;
|
|
561
|
+
mergeInlineConfig: (...configs: Partial<InlineConfig$1>[]) => InlineConfig$1;
|
|
560
562
|
readonly defineImportMetaEnv: Record<string, any>;
|
|
561
563
|
readonly cwd: string;
|
|
562
564
|
readonly isDev: boolean;
|
|
563
565
|
readonly mpDistRoot: string;
|
|
564
566
|
readonly outDir: string;
|
|
565
|
-
readonly inlineConfig: InlineConfig;
|
|
566
|
-
readonly weappViteConfig: NonNullable<InlineConfig['weapp']>;
|
|
567
|
+
readonly inlineConfig: InlineConfig$1;
|
|
568
|
+
readonly weappViteConfig: NonNullable<InlineConfig$1['weapp']>;
|
|
567
569
|
readonly packageJson: PackageJson;
|
|
568
570
|
readonly projectConfig: Record<string, any>;
|
|
569
571
|
readonly srcRoot: string;
|
|
@@ -588,7 +590,7 @@ interface ResolvedWeappWebConfig {
|
|
|
588
590
|
pluginOptions: Omit<WeappWebPluginOptions, 'srcDir'> & {
|
|
589
591
|
srcDir: string;
|
|
590
592
|
};
|
|
591
|
-
userConfig?: InlineConfig;
|
|
593
|
+
userConfig?: InlineConfig$1;
|
|
592
594
|
source?: WeappWebConfig;
|
|
593
595
|
}
|
|
594
596
|
|
|
@@ -629,7 +631,7 @@ interface NpmService {
|
|
|
629
631
|
bundleBuild: (args: {
|
|
630
632
|
entry: InputOption;
|
|
631
633
|
name: string;
|
|
632
|
-
options?:
|
|
634
|
+
options?: InlineConfig;
|
|
633
635
|
outDir: string;
|
|
634
636
|
}) => Promise<void>;
|
|
635
637
|
copyBuild: (args: {
|
|
@@ -640,14 +642,14 @@ interface NpmService {
|
|
|
640
642
|
buildPackage: (args: {
|
|
641
643
|
dep: string;
|
|
642
644
|
outDir: string;
|
|
643
|
-
options?:
|
|
645
|
+
options?: InlineConfig;
|
|
644
646
|
isDependenciesCacheOutdate: boolean;
|
|
645
647
|
}) => Promise<void>;
|
|
646
648
|
getPackNpmRelationList: () => {
|
|
647
649
|
packageJsonPath: string;
|
|
648
650
|
miniprogramNpmDistDir: string;
|
|
649
651
|
}[];
|
|
650
|
-
build: (options?:
|
|
652
|
+
build: (options?: InlineConfig) => Promise<void>;
|
|
651
653
|
}
|
|
652
654
|
|
|
653
655
|
interface Token {
|
|
@@ -867,4 +869,4 @@ declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig
|
|
|
867
869
|
declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
|
|
868
870
|
declare function defineConfig(config: UserConfigExport): UserConfigExport;
|
|
869
871
|
|
|
870
|
-
export { type
|
|
872
|
+
export { type PageEntry as $, type Alias as A, type AutoImportComponents as B, type CompilerContext as C, type AutoImportComponentsOption as D, type EnhanceWxmlOptions as E, type ScanWxmlOptions as F, type GenerateExtensionsOptions as G, type HandleWxmlOptions as H, type EnhanceOptions as I, type BuildNpmPackageMeta as J, type JsFormat as K, type LoadConfigOptions as L, type MpPlatform as M, type SharedChunkStrategy as N, type ChunksConfig as O, type ProjectConfig as P, type SubPackageMetaValue as Q, type ResolvedAlias as R, type SubPackage as S, type WxmlDep as T, type UserConfig as U, type ScanComponentItem as V, type WeappViteConfig as W, type ComponentsMap as X, type BaseEntry as Y, type Entry as Z, type AppEntry as _, defineAppJson as a, type ComponentEntry as a0, type EntryJsonFragment as a1, type WeappVitePluginApi as a2, type ChangeEvent as a3, 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.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-C8y2cWbg.cjs';
|
|
3
3
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
|
4
4
|
import '@weapp-vite/web';
|
|
5
5
|
import 'rolldown';
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-CRwMOjkF.js';
|
|
3
3
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
|
4
4
|
import '@weapp-vite/web';
|
|
5
5
|
import 'rolldown';
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunk7NTZAAMDcjs = require('./chunk-7NTZAAMD.cjs');
|
|
4
|
+
require('./chunk-CFTSVRD4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkJKNSNXOEcjs = require('./chunk-JKNSNXOE.cjs');
|
|
@@ -27,4 +27,4 @@ _chunkQKFYCWOCcjs.init_cjs_shims.call(void 0, );
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
exports.createCompilerContext =
|
|
30
|
+
exports.createCompilerContext = _chunk7NTZAAMDcjs.createCompilerContext; exports.defineAppJson = _chunkRMHCFT5Qcjs.defineAppJson; exports.defineComponentJson = _chunkRMHCFT5Qcjs.defineComponentJson; exports.defineConfig = _chunkJKNSNXOEcjs.defineConfig; exports.definePageJson = _chunkRMHCFT5Qcjs.definePageJson; exports.defineSitemapJson = _chunkRMHCFT5Qcjs.defineSitemapJson; exports.defineThemeJson = _chunkRMHCFT5Qcjs.defineThemeJson;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-C8y2cWbg.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-C8y2cWbg.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';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-CRwMOjkF.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-CRwMOjkF.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';
|
package/dist/index.mjs
CHANGED
package/dist/json.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
+
export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-C8y2cWbg.cjs';
|
|
3
3
|
import 'vite';
|
|
4
4
|
import '@weapp-vite/web';
|
|
5
5
|
import 'rolldown';
|
package/dist/json.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
+
export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-CRwMOjkF.js';
|
|
3
3
|
import 'vite';
|
|
4
4
|
import '@weapp-vite/web';
|
|
5
5
|
import 'rolldown';
|
package/dist/types.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { A as Alias, g as AliasOptions,
|
|
1
|
+
export { A as Alias, g as AliasOptions, _ as AppEntry, B as AutoImportComponents, D as AutoImportComponentsOption, Y as BaseEntry, J as BuildNpmPackageMeta, a3 as ChangeEvent, O as ChunksConfig, a0 as ComponentEntry, X as ComponentsMap, y as CopyGlobs, x as CopyOptions, I as EnhanceOptions, E as EnhanceWxmlOptions, Z as Entry, a1 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, K as JsFormat, M as MpPlatform, $ as PageEntry, P as ProjectConfig, R as ResolvedAlias, V as ScanComponentItem, F as ScanWxmlOptions, N as SharedChunkStrategy, S as SubPackage, Q as SubPackageMetaValue, j as SubPackageStyleConfigEntry, i as SubPackageStyleConfigObject, k as SubPackageStyleEntry, h as SubPackageStyleScope, U as UserConfig, W as WeappViteConfig, a2 as WeappVitePluginApi, z as WeappWebConfig, T as WxmlDep } from './config-C8y2cWbg.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
5
|
export { R as Resolver } from './types-3q1Qq6Fe.cjs';
|
|
6
|
-
export {
|
|
6
|
+
export { InlineConfig as NpmBuildOptions } from 'tsdown';
|
|
7
7
|
import '@weapp-core/schematics';
|
|
8
8
|
import '@weapp-vite/web';
|
|
9
9
|
import 'vite-plugin-performance';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { A as Alias, g as AliasOptions,
|
|
1
|
+
export { A as Alias, g as AliasOptions, _ as AppEntry, B as AutoImportComponents, D as AutoImportComponentsOption, Y as BaseEntry, J as BuildNpmPackageMeta, a3 as ChangeEvent, O as ChunksConfig, a0 as ComponentEntry, X as ComponentsMap, y as CopyGlobs, x as CopyOptions, I as EnhanceOptions, E as EnhanceWxmlOptions, Z as Entry, a1 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, K as JsFormat, M as MpPlatform, $ as PageEntry, P as ProjectConfig, R as ResolvedAlias, V as ScanComponentItem, F as ScanWxmlOptions, N as SharedChunkStrategy, S as SubPackage, Q as SubPackageMetaValue, j as SubPackageStyleConfigEntry, i as SubPackageStyleConfigObject, k as SubPackageStyleEntry, h as SubPackageStyleScope, U as UserConfig, W as WeappViteConfig, a2 as WeappVitePluginApi, z as WeappWebConfig, T as WxmlDep } from './config-CRwMOjkF.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
5
|
export { R as Resolver } from './types-3q1Qq6Fe.js';
|
|
6
|
-
export {
|
|
6
|
+
export { InlineConfig as NpmBuildOptions } from 'tsdown';
|
|
7
7
|
import '@weapp-core/schematics';
|
|
8
8
|
import '@weapp-vite/web';
|
|
9
9
|
import 'vite-plugin-performance';
|