weapp-vite 6.6.2 → 6.6.4

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.
@@ -2,7 +2,7 @@ import {
2
2
  getCompilerContext,
3
3
  resetCompilerContext,
4
4
  setActiveCompilerContextKey
5
- } from "./chunk-TVBYEUMB.mjs";
5
+ } from "./chunk-5V5BMEO4.mjs";
6
6
  import {
7
7
  init_esm_shims
8
8
  } from "./chunk-ZGQLKXB2.mjs";
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCompilerContext
3
- } from "./chunk-EABLNB7B.mjs";
3
+ } from "./chunk-MNX46VWR.mjs";
4
4
  import {
5
5
  DEFAULT_MP_PLATFORM,
6
6
  SHARED_CHUNK_VIRTUAL_PREFIX,
@@ -14,7 +14,7 @@ import {
14
14
  normalizeMiniPlatform,
15
15
  resolveMiniPlatform,
16
16
  resolveWeappConfigFile
17
- } from "./chunk-TVBYEUMB.mjs";
17
+ } from "./chunk-5V5BMEO4.mjs";
18
18
  import {
19
19
  VERSION
20
20
  } from "./chunk-YFWVPDVD.mjs";
@@ -770,6 +770,20 @@ interface WeappViteConfig {
770
770
  * @default 'js'
771
771
  */
772
772
  classStyleRuntime?: 'auto' | 'wxs' | 'js';
773
+ /**
774
+ * @description 对象字面量 v-bind 编译模式
775
+ * - `runtime`: 通过运行时中间变量绑定(默认,当前行为)
776
+ * - `inline`: 直接内联输出对象字面量(会在插值两侧补空格以避免 `{{{`)
777
+ * @default 'runtime'
778
+ */
779
+ objectLiteralBindMode?: 'runtime' | 'inline';
780
+ /**
781
+ * @description Mustache 插值输出风格
782
+ * - `compact`: 紧凑输出(`{{expr}}`,默认,当前行为)
783
+ * - `spaced`: 空格友好输出(`{{ expr }}`)
784
+ * @default 'compact'
785
+ */
786
+ mustacheInterpolation?: 'compact' | 'spaced';
773
787
  /**
774
788
  * @description 是否复用 class/style WXS 运行时(主包与非独立分包共享,独立分包各自生成)
775
789
  * @default true
package/dist/config.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import 'vite';
2
- export { U as UserConfig, a as UserConfigExport, b as UserConfigFn, c as UserConfigFnNoEnv, d as UserConfigFnNoEnvPlain, e as UserConfigFnObject, f as UserConfigFnObjectPlain, g as UserConfigFnPromise, W as WeappViteConfig, h as defineAppJson, i as defineComponentJson, j as defineConfig, k as definePageJson, l as defineSitemapJson, m as defineThemeJson } from './config-BzT9eoff.js';
2
+ export { U as UserConfig, a as UserConfigExport, b as UserConfigFn, c as UserConfigFnNoEnv, d as UserConfigFnNoEnvPlain, e as UserConfigFnObject, f as UserConfigFnObjectPlain, g as UserConfigFnPromise, W as WeappViteConfig, h as defineAppJson, i as defineComponentJson, j as defineConfig, k as definePageJson, l as defineSitemapJson, m as defineThemeJson } from './config-BDp-nhap.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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { L as LoadConfigOptions, C as CompilerContext } from './config-BzT9eoff.js';
2
- export { U as UserConfig, a as UserConfigExport, b as UserConfigFn, c as UserConfigFnNoEnv, d as UserConfigFnNoEnvPlain, e as UserConfigFnObject, f as UserConfigFnObjectPlain, g as UserConfigFnPromise, W as WeappViteConfig, h as defineAppJson, i as defineComponentJson, j as defineConfig, k as definePageJson, l as defineSitemapJson, m as defineThemeJson } from './config-BzT9eoff.js';
1
+ import { L as LoadConfigOptions, C as CompilerContext } from './config-BDp-nhap.js';
2
+ export { U as UserConfig, a as UserConfigExport, b as UserConfigFn, c as UserConfigFnNoEnv, d as UserConfigFnNoEnvPlain, e as UserConfigFnObject, f as UserConfigFnObjectPlain, g as UserConfigFnPromise, W as WeappViteConfig, h as defineAppJson, i as defineComponentJson, j as defineConfig, k as definePageJson, l as defineSitemapJson, m as defineThemeJson } from './config-BDp-nhap.js';
3
3
  export { WevuComponentOptions, defineEmits, defineProps } from './runtime.js';
4
4
  export { RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, WatchOptions as RolldownWatchOptions, RolldownWatcher } from 'rolldown';
5
5
  export { ConfigEnv, InlineConfig, Plugin, PluginOption, ResolvedConfig, ViteDevServer } from 'vite';
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  import "./chunk-XPH5IUSV.mjs";
2
2
  import {
3
3
  createCompilerContext
4
- } from "./chunk-EABLNB7B.mjs";
4
+ } from "./chunk-MNX46VWR.mjs";
5
5
  import {
6
6
  defineEmits,
7
7
  defineProps
8
8
  } from "./chunk-4UCXO3GV.mjs";
9
- import "./chunk-TVBYEUMB.mjs";
9
+ import "./chunk-5V5BMEO4.mjs";
10
10
  import "./chunk-YFWVPDVD.mjs";
11
11
  import {
12
12
  defineConfig
package/dist/json.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
2
- export { h as defineAppJson, i as defineComponentJson, k as definePageJson, l as defineSitemapJson, m as defineThemeJson } from './config-BzT9eoff.js';
2
+ export { h as defineAppJson, i as defineComponentJson, k as definePageJson, l as defineSitemapJson, m as defineThemeJson } from './config-BDp-nhap.js';
3
3
  import 'vite';
4
4
  import '@weapp-vite/web';
5
5
  import 'rolldown';
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Alias, n as AliasOptions, o as AlipayNpmMode, p as AppEntry, q as AutoImportComponents, r as AutoImportComponentsOption, B as BaseEntry, s as BuildNpmPackageMeta, t as ChangeEvent, u as ChunksConfig, v as ComponentEntry, w as ComponentsMap, x as CopyGlobs, y as CopyOptions, E as EnhanceOptions, z as EnhanceWxmlOptions, D as Entry, F as EntryJsonFragment, G as GenerateDirsOptions, H as GenerateExtensionsOptions, I as GenerateFileType, J as GenerateFilenamesOptions, K as GenerateOptions, M as GenerateTemplate, N as GenerateTemplateContext, O as GenerateTemplateEntry, P as GenerateTemplateFactory, Q as GenerateTemplateFileSource, R as GenerateTemplateInlineSource, S as GenerateTemplateScope, T as GenerateTemplatesConfig, V as HandleWxmlOptions, X as JsFormat, Y as JsonConfig, Z as JsonMergeContext, _ as JsonMergeFunction, $ as JsonMergeStage, a0 as JsonMergeStrategy, a1 as MpPlatform, a2 as MultiPlatformConfig, a3 as NpmBuildOptions, a4 as PageEntry, a5 as ProjectConfig, a6 as ResolvedAlias, a7 as ScanComponentItem, a8 as ScanWxmlOptions, a9 as SharedChunkDynamicImports, aa as SharedChunkMode, ab as SharedChunkOverride, ac as SharedChunkStrategy, ad as SubPackage, ae as SubPackageMetaValue, af as SubPackageStyleConfigEntry, ag as SubPackageStyleConfigObject, ah as SubPackageStyleEntry, ai as SubPackageStyleScope, aj as UserConfig, ak as WeappLibComponentJson, al as WeappLibConfig, am as WeappLibDtsOptions, an as WeappLibEntryContext, ao as WeappLibFileName, ap as WeappLibInternalDtsOptions, aq as WeappLibVueTscOptions, W as WeappViteConfig, ar as WeappVitePluginApi, as as WeappWebConfig, at as WxmlDep } from './config-BzT9eoff.js';
1
+ export { A as Alias, n as AliasOptions, o as AlipayNpmMode, p as AppEntry, q as AutoImportComponents, r as AutoImportComponentsOption, B as BaseEntry, s as BuildNpmPackageMeta, t as ChangeEvent, u as ChunksConfig, v as ComponentEntry, w as ComponentsMap, x as CopyGlobs, y as CopyOptions, E as EnhanceOptions, z as EnhanceWxmlOptions, D as Entry, F as EntryJsonFragment, G as GenerateDirsOptions, H as GenerateExtensionsOptions, I as GenerateFileType, J as GenerateFilenamesOptions, K as GenerateOptions, M as GenerateTemplate, N as GenerateTemplateContext, O as GenerateTemplateEntry, P as GenerateTemplateFactory, Q as GenerateTemplateFileSource, R as GenerateTemplateInlineSource, S as GenerateTemplateScope, T as GenerateTemplatesConfig, V as HandleWxmlOptions, X as JsFormat, Y as JsonConfig, Z as JsonMergeContext, _ as JsonMergeFunction, $ as JsonMergeStage, a0 as JsonMergeStrategy, a1 as MpPlatform, a2 as MultiPlatformConfig, a3 as NpmBuildOptions, a4 as PageEntry, a5 as ProjectConfig, a6 as ResolvedAlias, a7 as ScanComponentItem, a8 as ScanWxmlOptions, a9 as SharedChunkDynamicImports, aa as SharedChunkMode, ab as SharedChunkOverride, ac as SharedChunkStrategy, ad as SubPackage, ae as SubPackageMetaValue, af as SubPackageStyleConfigEntry, ag as SubPackageStyleConfigObject, ah as SubPackageStyleEntry, ai as SubPackageStyleScope, aj as UserConfig, ak as WeappLibComponentJson, al as WeappLibConfig, am as WeappLibDtsOptions, an as WeappLibEntryContext, ao as WeappLibFileName, ap as WeappLibInternalDtsOptions, aq as WeappLibVueTscOptions, W as WeappViteConfig, ar as WeappVitePluginApi, as as WeappWebConfig, at as WxmlDep } from './config-BDp-nhap.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 { ComputedDefinitions, MethodDefinitions, Ref } from 'wevu';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "6.6.2",
4
+ "version": "6.6.4",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -100,24 +100,24 @@
100
100
  "pathe": "^2.0.3",
101
101
  "picomatch": "^4.0.3",
102
102
  "postcss": "^8.5.6",
103
- "rolldown": "1.0.0-rc.3",
103
+ "rolldown": "1.0.0-rc.4",
104
104
  "rolldown-plugin-dts": "0.22.1",
105
105
  "typescript": "^5.9.3",
106
- "vite": "8.0.0-beta.13",
107
- "vite-tsconfig-paths": "^6.1.0",
106
+ "vite": "8.0.0-beta.14",
107
+ "vite-tsconfig-paths": "^6.1.1",
108
108
  "vue": "^3.5.28",
109
109
  "vue-tsc": "^3.2.4",
110
+ "@weapp-core/init": "6.0.1",
111
+ "@weapp-core/logger": "3.1.0",
110
112
  "@weapp-core/schematics": "6.0.2",
111
- "@weapp-vite/volar": "2.0.4",
112
113
  "@weapp-core/shared": "3.0.1",
114
+ "@weapp-vite/volar": "2.0.4",
113
115
  "@weapp-vite/web": "1.2.4",
114
116
  "@wevu/api": "0.1.1",
115
117
  "rolldown-require": "2.0.6",
116
118
  "vite-plugin-performance": "2.0.1",
117
- "weapp-ide-cli": "5.0.3",
118
- "@weapp-core/init": "6.0.1",
119
- "wevu": "2.1.11",
120
- "@weapp-core/logger": "3.1.0"
119
+ "weapp-ide-cli": "5.0.4",
120
+ "wevu": "6.6.4"
121
121
  },
122
122
  "publishConfig": {
123
123
  "access": "public",
@@ -137,7 +137,7 @@
137
137
  "estree-walker": "^3.0.3",
138
138
  "htmlparser2": "^10.1.0",
139
139
  "local-pkg": "^1.1.2",
140
- "lru-cache": "^11.2.5",
140
+ "lru-cache": "^11.2.6",
141
141
  "magic-string": "^0.30.21",
142
142
  "p-queue": "^9.1.0",
143
143
  "package-manager-detector": "^1.6.0",