weapp-vite 5.11.4 → 5.12.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.
@@ -1,8 +1,7 @@
1
- import { InlineConfig as InlineConfig$1, UserConfig as UserConfig$1, ViteDevServer, build, UserConfigFnObject, UserConfigExport } from 'vite';
1
+ import { InlineConfig, 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 { InlineConfig } from 'tsdown';
6
5
  import { WrapPluginOptions } from 'vite-plugin-performance';
7
6
  import { PluginOptions } from 'vite-tsconfig-paths';
8
7
  import { R as Resolver, a as ResolvedValue } from './types-3q1Qq6Fe.cjs';
@@ -13,6 +12,7 @@ import { Buffer } from 'node:buffer';
13
12
  import { LRUCache } from 'lru-cache';
14
13
  import { A as AutoRoutes } from './routes-C9hKJjXs.cjs';
15
14
 
15
+ type NpmBuildOptions = InlineConfig;
16
16
  interface Alias {
17
17
  find: string | RegExp;
18
18
  replacement: string;
@@ -55,7 +55,7 @@ interface SubPackage {
55
55
  entry?: string;
56
56
  name?: string;
57
57
  dependencies?: (string | RegExp)[];
58
- inlineConfig?: Partial<InlineConfig$1>;
58
+ inlineConfig?: Partial<InlineConfig>;
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$1;
198
+ vite?: InlineConfig;
199
199
  }
200
200
  interface AutoImportComponents {
201
201
  /**
@@ -321,9 +321,9 @@ interface WeappViteConfig {
321
321
  */
322
322
  cache?: boolean;
323
323
  /**
324
- * @description 构建 npm 的配置,可以配置这个选项给 tsdown,让不同的包走不同的配置
324
+ * @description 构建 npm 的配置,可传入 Vite 的库模式配置,让不同的包走不同的配置
325
325
  */
326
- buildOptions?: (options: InlineConfig, pkgMeta: BuildNpmPackageMeta) => InlineConfig | undefined;
326
+ buildOptions?: (options: NpmBuildOptions, pkgMeta: BuildNpmPackageMeta) => NpmBuildOptions | undefined;
327
327
  };
328
328
  /**
329
329
  * @group 生成脚手架配置
@@ -519,11 +519,11 @@ interface LoadConfigOptions {
519
519
  cwd: string;
520
520
  isDev: boolean;
521
521
  mode: string;
522
- inlineConfig?: InlineConfig$1;
522
+ inlineConfig?: InlineConfig;
523
523
  configFile?: string;
524
524
  }
525
525
  interface LoadConfigResult {
526
- config: InlineConfig$1;
526
+ config: InlineConfig;
527
527
  aliasEntries: ResolvedAlias[];
528
528
  outputExtensions: OutputExtensions;
529
529
  packageJson: PackageJson;
@@ -555,17 +555,17 @@ interface ConfigService {
555
555
  packageInfo: PackageInfo;
556
556
  setDefineEnv: (key: string, value: any) => void;
557
557
  load: (options?: Partial<LoadConfigOptions>) => Promise<LoadConfigResult>;
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;
558
+ mergeWorkers: (...configs: Partial<InlineConfig>[]) => InlineConfig;
559
+ merge: (subPackageMeta?: SubPackageMetaValue, ...configs: Partial<InlineConfig | undefined>[]) => InlineConfig;
560
+ mergeWeb: (...configs: Partial<InlineConfig | undefined>[]) => InlineConfig | undefined;
561
+ mergeInlineConfig: (...configs: Partial<InlineConfig>[]) => InlineConfig;
562
562
  readonly defineImportMetaEnv: Record<string, any>;
563
563
  readonly cwd: string;
564
564
  readonly isDev: boolean;
565
565
  readonly mpDistRoot: string;
566
566
  readonly outDir: string;
567
- readonly inlineConfig: InlineConfig$1;
568
- readonly weappViteConfig: NonNullable<InlineConfig$1['weapp']>;
567
+ readonly inlineConfig: InlineConfig;
568
+ readonly weappViteConfig: NonNullable<InlineConfig['weapp']>;
569
569
  readonly packageJson: PackageJson;
570
570
  readonly projectConfig: Record<string, any>;
571
571
  readonly srcRoot: string;
@@ -592,7 +592,7 @@ interface ResolvedWeappWebConfig {
592
592
  pluginOptions: Omit<WeappWebPluginOptions, 'srcDir'> & {
593
593
  srcDir: string;
594
594
  };
595
- userConfig?: InlineConfig$1;
595
+ userConfig?: InlineConfig;
596
596
  source?: WeappWebConfig;
597
597
  }
598
598
 
@@ -633,7 +633,7 @@ interface NpmService {
633
633
  bundleBuild: (args: {
634
634
  entry: InputOption;
635
635
  name: string;
636
- options?: InlineConfig;
636
+ options?: NpmBuildOptions;
637
637
  outDir: string;
638
638
  }) => Promise<void>;
639
639
  copyBuild: (args: {
@@ -644,14 +644,14 @@ interface NpmService {
644
644
  buildPackage: (args: {
645
645
  dep: string;
646
646
  outDir: string;
647
- options?: InlineConfig;
647
+ options?: NpmBuildOptions;
648
648
  isDependenciesCacheOutdate: boolean;
649
649
  }) => Promise<void>;
650
650
  getPackNpmRelationList: () => {
651
651
  packageJsonPath: string;
652
652
  miniprogramNpmDistDir: string;
653
653
  }[];
654
- build: (options?: InlineConfig) => Promise<void>;
654
+ build: (options?: NpmBuildOptions) => Promise<void>;
655
655
  }
656
656
 
657
657
  interface Token {
@@ -873,4 +873,4 @@ declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig
873
873
  declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
874
874
  declare function defineConfig(config: UserConfigExport): UserConfigExport;
875
875
 
876
- 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 };
876
+ export { type AppEntry 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 NpmBuildOptions as N, type SharedChunkStrategy as O, type ChunksConfig as P, type ProjectConfig as Q, type ResolvedAlias as R, type SubPackage as S, type SubPackageMetaValue as T, type UserConfig as U, type WxmlDep as V, type WeappViteConfig as W, type ScanComponentItem as X, type ComponentsMap as Y, type BaseEntry as Z, type Entry as _, defineAppJson as a, type PageEntry as a0, type ComponentEntry as a1, type EntryJsonFragment as a2, type WeappVitePluginApi as a3, type ChangeEvent as a4, 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,7 @@
1
- import { InlineConfig as InlineConfig$1, UserConfig as UserConfig$1, ViteDevServer, build, UserConfigFnObject, UserConfigExport } from 'vite';
1
+ import { InlineConfig, 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 { InlineConfig } from 'tsdown';
6
5
  import { WrapPluginOptions } from 'vite-plugin-performance';
7
6
  import { PluginOptions } from 'vite-tsconfig-paths';
8
7
  import { R as Resolver, a as ResolvedValue } from './types-3q1Qq6Fe.js';
@@ -13,6 +12,7 @@ import { Buffer } from 'node:buffer';
13
12
  import { LRUCache } from 'lru-cache';
14
13
  import { A as AutoRoutes } from './routes-C9hKJjXs.js';
15
14
 
15
+ type NpmBuildOptions = InlineConfig;
16
16
  interface Alias {
17
17
  find: string | RegExp;
18
18
  replacement: string;
@@ -55,7 +55,7 @@ interface SubPackage {
55
55
  entry?: string;
56
56
  name?: string;
57
57
  dependencies?: (string | RegExp)[];
58
- inlineConfig?: Partial<InlineConfig$1>;
58
+ inlineConfig?: Partial<InlineConfig>;
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$1;
198
+ vite?: InlineConfig;
199
199
  }
200
200
  interface AutoImportComponents {
201
201
  /**
@@ -321,9 +321,9 @@ interface WeappViteConfig {
321
321
  */
322
322
  cache?: boolean;
323
323
  /**
324
- * @description 构建 npm 的配置,可以配置这个选项给 tsdown,让不同的包走不同的配置
324
+ * @description 构建 npm 的配置,可传入 Vite 的库模式配置,让不同的包走不同的配置
325
325
  */
326
- buildOptions?: (options: InlineConfig, pkgMeta: BuildNpmPackageMeta) => InlineConfig | undefined;
326
+ buildOptions?: (options: NpmBuildOptions, pkgMeta: BuildNpmPackageMeta) => NpmBuildOptions | undefined;
327
327
  };
328
328
  /**
329
329
  * @group 生成脚手架配置
@@ -519,11 +519,11 @@ interface LoadConfigOptions {
519
519
  cwd: string;
520
520
  isDev: boolean;
521
521
  mode: string;
522
- inlineConfig?: InlineConfig$1;
522
+ inlineConfig?: InlineConfig;
523
523
  configFile?: string;
524
524
  }
525
525
  interface LoadConfigResult {
526
- config: InlineConfig$1;
526
+ config: InlineConfig;
527
527
  aliasEntries: ResolvedAlias[];
528
528
  outputExtensions: OutputExtensions;
529
529
  packageJson: PackageJson;
@@ -555,17 +555,17 @@ interface ConfigService {
555
555
  packageInfo: PackageInfo;
556
556
  setDefineEnv: (key: string, value: any) => void;
557
557
  load: (options?: Partial<LoadConfigOptions>) => Promise<LoadConfigResult>;
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;
558
+ mergeWorkers: (...configs: Partial<InlineConfig>[]) => InlineConfig;
559
+ merge: (subPackageMeta?: SubPackageMetaValue, ...configs: Partial<InlineConfig | undefined>[]) => InlineConfig;
560
+ mergeWeb: (...configs: Partial<InlineConfig | undefined>[]) => InlineConfig | undefined;
561
+ mergeInlineConfig: (...configs: Partial<InlineConfig>[]) => InlineConfig;
562
562
  readonly defineImportMetaEnv: Record<string, any>;
563
563
  readonly cwd: string;
564
564
  readonly isDev: boolean;
565
565
  readonly mpDistRoot: string;
566
566
  readonly outDir: string;
567
- readonly inlineConfig: InlineConfig$1;
568
- readonly weappViteConfig: NonNullable<InlineConfig$1['weapp']>;
567
+ readonly inlineConfig: InlineConfig;
568
+ readonly weappViteConfig: NonNullable<InlineConfig['weapp']>;
569
569
  readonly packageJson: PackageJson;
570
570
  readonly projectConfig: Record<string, any>;
571
571
  readonly srcRoot: string;
@@ -592,7 +592,7 @@ interface ResolvedWeappWebConfig {
592
592
  pluginOptions: Omit<WeappWebPluginOptions, 'srcDir'> & {
593
593
  srcDir: string;
594
594
  };
595
- userConfig?: InlineConfig$1;
595
+ userConfig?: InlineConfig;
596
596
  source?: WeappWebConfig;
597
597
  }
598
598
 
@@ -633,7 +633,7 @@ interface NpmService {
633
633
  bundleBuild: (args: {
634
634
  entry: InputOption;
635
635
  name: string;
636
- options?: InlineConfig;
636
+ options?: NpmBuildOptions;
637
637
  outDir: string;
638
638
  }) => Promise<void>;
639
639
  copyBuild: (args: {
@@ -644,14 +644,14 @@ interface NpmService {
644
644
  buildPackage: (args: {
645
645
  dep: string;
646
646
  outDir: string;
647
- options?: InlineConfig;
647
+ options?: NpmBuildOptions;
648
648
  isDependenciesCacheOutdate: boolean;
649
649
  }) => Promise<void>;
650
650
  getPackNpmRelationList: () => {
651
651
  packageJsonPath: string;
652
652
  miniprogramNpmDistDir: string;
653
653
  }[];
654
- build: (options?: InlineConfig) => Promise<void>;
654
+ build: (options?: NpmBuildOptions) => Promise<void>;
655
655
  }
656
656
 
657
657
  interface Token {
@@ -873,4 +873,4 @@ declare function defineConfig(config: Promise<UserConfig$1>): Promise<UserConfig
873
873
  declare function defineConfig(config: UserConfigFnObject): UserConfigFnObject;
874
874
  declare function defineConfig(config: UserConfigExport): UserConfigExport;
875
875
 
876
- 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 };
876
+ export { type AppEntry 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 NpmBuildOptions as N, type SharedChunkStrategy as O, type ChunksConfig as P, type ProjectConfig as Q, type ResolvedAlias as R, type SubPackage as S, type SubPackageMetaValue as T, type UserConfig as U, type WxmlDep as V, type WeappViteConfig as W, type ScanComponentItem as X, type ComponentsMap as Y, type BaseEntry as Z, type Entry as _, defineAppJson as a, type PageEntry as a0, type ComponentEntry as a1, type EntryJsonFragment as a2, type WeappVitePluginApi as a3, type ChangeEvent as a4, 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,9 +1,8 @@
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-D1eBLaq2.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-DgMm7Geo.cjs';
3
3
  export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
4
4
  import '@weapp-vite/web';
5
5
  import 'rolldown';
6
- import 'tsdown';
7
6
  import 'vite-plugin-performance';
8
7
  import 'vite-tsconfig-paths';
9
8
  import './types-3q1Qq6Fe.cjs';
package/dist/config.d.ts CHANGED
@@ -1,9 +1,8 @@
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-9JglUSN2.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-sFIhUM69.js';
3
3
  export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
4
4
  import '@weapp-vite/web';
5
5
  import 'rolldown';
6
- import 'tsdown';
7
6
  import 'vite-plugin-performance';
8
7
  import 'vite-tsconfig-paths';
9
8
  import './types-3q1Qq6Fe.js';
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkNIUQMR6Kcjs = require('./chunk-NIUQMR6K.cjs');
4
- require('./chunk-Q4SMSDJY.cjs');
3
+ var _chunk7DRE4BEKcjs = require('./chunk-7DRE4BEK.cjs');
4
+ require('./chunk-ANDG4OME.cjs');
5
5
 
6
6
 
7
7
  var _chunkINJNZ3X2cjs = require('./chunk-INJNZ3X2.cjs');
@@ -27,4 +27,4 @@ _chunkN5FVU7GRcjs.init_cjs_shims.call(void 0, );
27
27
 
28
28
 
29
29
 
30
- exports.createCompilerContext = _chunkNIUQMR6Kcjs.createCompilerContext; exports.defineAppJson = _chunkMTUYQJIFcjs.defineAppJson; exports.defineComponentJson = _chunkMTUYQJIFcjs.defineComponentJson; exports.defineConfig = _chunkINJNZ3X2cjs.defineConfig; exports.definePageJson = _chunkMTUYQJIFcjs.definePageJson; exports.defineSitemapJson = _chunkMTUYQJIFcjs.defineSitemapJson; exports.defineThemeJson = _chunkMTUYQJIFcjs.defineThemeJson;
30
+ exports.createCompilerContext = _chunk7DRE4BEKcjs.createCompilerContext; exports.defineAppJson = _chunkMTUYQJIFcjs.defineAppJson; exports.defineComponentJson = _chunkMTUYQJIFcjs.defineComponentJson; exports.defineConfig = _chunkINJNZ3X2cjs.defineConfig; exports.definePageJson = _chunkMTUYQJIFcjs.definePageJson; exports.defineSitemapJson = _chunkMTUYQJIFcjs.defineSitemapJson; exports.defineThemeJson = _chunkMTUYQJIFcjs.defineThemeJson;
package/dist/index.d.cts CHANGED
@@ -1,10 +1,9 @@
1
- import { L as LoadConfigOptions, C as CompilerContext } from './config-D1eBLaq2.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-D1eBLaq2.cjs';
1
+ import { L as LoadConfigOptions, C as CompilerContext } from './config-DgMm7Geo.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-DgMm7Geo.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
6
  import '@weapp-vite/web';
7
- import 'tsdown';
8
7
  import 'vite-plugin-performance';
9
8
  import 'vite-tsconfig-paths';
10
9
  import './types-3q1Qq6Fe.cjs';
package/dist/index.d.ts CHANGED
@@ -1,10 +1,9 @@
1
- import { L as LoadConfigOptions, C as CompilerContext } from './config-9JglUSN2.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-9JglUSN2.js';
1
+ import { L as LoadConfigOptions, C as CompilerContext } from './config-sFIhUM69.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-sFIhUM69.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
6
  import '@weapp-vite/web';
7
- import 'tsdown';
8
7
  import 'vite-plugin-performance';
9
8
  import 'vite-tsconfig-paths';
10
9
  import './types-3q1Qq6Fe.js';
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createCompilerContext
3
- } from "./chunk-KZVQVHXZ.mjs";
4
- import "./chunk-K5QGB3YX.mjs";
3
+ } from "./chunk-LLYDSPS7.mjs";
4
+ import "./chunk-TS7WK45E.mjs";
5
5
  import {
6
6
  defineConfig
7
7
  } from "./chunk-46VA2TEF.mjs";
package/dist/json.d.cts CHANGED
@@ -1,9 +1,8 @@
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-D1eBLaq2.cjs';
2
+ export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-DgMm7Geo.cjs';
3
3
  import 'vite';
4
4
  import '@weapp-vite/web';
5
5
  import 'rolldown';
6
- import 'tsdown';
7
6
  import 'vite-plugin-performance';
8
7
  import 'vite-tsconfig-paths';
9
8
  import './types-3q1Qq6Fe.cjs';
package/dist/json.d.ts CHANGED
@@ -1,9 +1,8 @@
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-9JglUSN2.js';
2
+ export { a as defineAppJson, c as defineComponentJson, b as definePageJson, e as defineSitemapJson, f as defineThemeJson } from './config-sFIhUM69.js';
3
3
  import 'vite';
4
4
  import '@weapp-vite/web';
5
5
  import 'rolldown';
6
- import 'tsdown';
7
6
  import 'vite-plugin-performance';
8
7
  import 'vite-tsconfig-paths';
9
8
  import './types-3q1Qq6Fe.js';
package/dist/types.d.cts CHANGED
@@ -1,9 +1,8 @@
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-D1eBLaq2.cjs';
1
+ export { A as Alias, g as AliasOptions, $ as AppEntry, B as AutoImportComponents, D as AutoImportComponentsOption, Z as BaseEntry, J as BuildNpmPackageMeta, a4 as ChangeEvent, P as ChunksConfig, a1 as ComponentEntry, Y as ComponentsMap, y as CopyGlobs, x as CopyOptions, I as EnhanceOptions, E as EnhanceWxmlOptions, _ as Entry, a2 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, N as NpmBuildOptions, a0 as PageEntry, Q as ProjectConfig, R as ResolvedAlias, X as ScanComponentItem, F as ScanWxmlOptions, O as SharedChunkStrategy, S as SubPackage, T as SubPackageMetaValue, j as SubPackageStyleConfigEntry, i as SubPackageStyleConfigObject, k as SubPackageStyleEntry, h as SubPackageStyleScope, U as UserConfig, W as WeappViteConfig, a3 as WeappVitePluginApi, z as WeappWebConfig, V as WxmlDep } from './config-DgMm7Geo.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 { InlineConfig as NpmBuildOptions } from 'tsdown';
7
6
  import '@weapp-core/schematics';
8
7
  import '@weapp-vite/web';
9
8
  import 'vite-plugin-performance';
package/dist/types.d.ts CHANGED
@@ -1,9 +1,8 @@
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-9JglUSN2.js';
1
+ export { A as Alias, g as AliasOptions, $ as AppEntry, B as AutoImportComponents, D as AutoImportComponentsOption, Z as BaseEntry, J as BuildNpmPackageMeta, a4 as ChangeEvent, P as ChunksConfig, a1 as ComponentEntry, Y as ComponentsMap, y as CopyGlobs, x as CopyOptions, I as EnhanceOptions, E as EnhanceWxmlOptions, _ as Entry, a2 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, N as NpmBuildOptions, a0 as PageEntry, Q as ProjectConfig, R as ResolvedAlias, X as ScanComponentItem, F as ScanWxmlOptions, O as SharedChunkStrategy, S as SubPackage, T as SubPackageMetaValue, j as SubPackageStyleConfigEntry, i as SubPackageStyleConfigObject, k as SubPackageStyleEntry, h as SubPackageStyleScope, U as UserConfig, W as WeappViteConfig, a3 as WeappVitePluginApi, z as WeappWebConfig, V as WxmlDep } from './config-sFIhUM69.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 { InlineConfig as NpmBuildOptions } from 'tsdown';
7
6
  import '@weapp-core/schematics';
8
7
  import '@weapp-vite/web';
9
8
  import 'vite-plugin-performance';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "5.11.4",
4
+ "version": "5.12.0",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -93,31 +93,30 @@
93
93
  "debug": "^4.4.3",
94
94
  "fdir": "^6.5.0",
95
95
  "fs-extra": "^11.3.3",
96
- "oxc-parser": "^0.104.0",
96
+ "oxc-parser": "^0.105.0",
97
97
  "oxc-walker": "^0.6.0",
98
98
  "pathe": "^2.0.3",
99
99
  "picomatch": "^4.0.3",
100
100
  "postcss": "^8.5.6",
101
- "rolldown": "^1.0.0-beta.55",
102
- "tsdown": "^0.18.1",
103
- "vite": "^8.0.0-beta.3",
101
+ "rolldown": "1.0.0-beta.56",
102
+ "vite": "^8.0.0-beta.4",
104
103
  "vite-tsconfig-paths": "^6.0.3",
105
104
  "@weapp-core/init": "3.0.7",
106
- "@weapp-core/logger": "2.0.0",
107
105
  "@weapp-core/schematics": "4.0.0",
106
+ "@weapp-core/logger": "2.0.0",
108
107
  "@weapp-core/shared": "2.0.1",
109
108
  "@weapp-vite/volar": "0.0.2",
110
109
  "@weapp-vite/web": "0.0.3",
111
- "rolldown-require": "1.0.6",
112
110
  "vite-plugin-performance": "1.0.0",
113
- "weapp-ide-cli": "4.1.2"
111
+ "weapp-ide-cli": "4.1.2",
112
+ "rolldown-require": "1.0.6"
114
113
  },
115
114
  "publishConfig": {
116
115
  "access": "public",
117
116
  "registry": "https://registry.npmjs.org"
118
117
  },
119
118
  "devDependencies": {
120
- "@oxc-project/types": "^0.104.0",
119
+ "@oxc-project/types": "^0.105.0",
121
120
  "@tailwindcss/vite": "^4.1.18",
122
121
  "@types/semver": "^7.7.1",
123
122
  "@vitejs/plugin-vue": "^6.0.3",