@wevu/compiler 7.11.1-dev.20261117.1 → 7.12.0-dev.20261119.1
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/index.d.mts +24 -1
- package/dist/index.mjs +5 -5
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -1967,6 +1967,17 @@ interface WevuDefaults {
|
|
|
1967
1967
|
app?: Record<string, any>;
|
|
1968
1968
|
component?: Record<string, any>;
|
|
1969
1969
|
}
|
|
1970
|
+
/**
|
|
1971
|
+
* 跨文件共享的基础库提示状态,同一次构建中每个主题只提示一次。
|
|
1972
|
+
* 不同功能使用各自稳定的主题键,互不抑制。
|
|
1973
|
+
*/
|
|
1974
|
+
interface BaseLibraryHintState {
|
|
1975
|
+
reported: Set<string>;
|
|
1976
|
+
}
|
|
1977
|
+
/**
|
|
1978
|
+
* 创建一次构建或开发会话共享的基础库提示状态。
|
|
1979
|
+
*/
|
|
1980
|
+
export declare function createBaseLibraryHintState(): BaseLibraryHintState;
|
|
1970
1981
|
interface MiniProgramDirectiveAttrs {
|
|
1971
1982
|
ifAttr: string;
|
|
1972
1983
|
elifAttr: string;
|
|
@@ -2140,6 +2151,13 @@ interface TemplateCompileOptions {
|
|
|
2140
2151
|
isPage?: boolean;
|
|
2141
2152
|
/** Vue Teleport 映射为小程序 root-portal 的编译配置。 */
|
|
2142
2153
|
teleport?: TeleportCompileOptions;
|
|
2154
|
+
/**
|
|
2155
|
+
* 项目配置的微信基础库版本,供编译器判断各功能的基础库门槛。
|
|
2156
|
+
* `latest` / `trial` 等无法静态判断的别名视为无法确认。
|
|
2157
|
+
*/
|
|
2158
|
+
baseLibraryVersion?: string;
|
|
2159
|
+
/** 跨文件共享的基础库提示状态,同一次构建中每个主题只提示一次。@internal */
|
|
2160
|
+
baseLibraryHintState?: BaseLibraryHintState;
|
|
2143
2161
|
/**
|
|
2144
2162
|
* Vue `<script setup>` props 解构重命名映射,key 为模板中使用的本地别名,value 为原始 prop 名。
|
|
2145
2163
|
*/
|
|
@@ -2431,6 +2449,11 @@ interface VueSfcStaticComponentMeta {
|
|
|
2431
2449
|
interface CompileVueFileOptions {
|
|
2432
2450
|
/** 页面首次 setup 前选择渲染后端;默认 legacy,首版原生目标为 TT V2。 */
|
|
2433
2451
|
renderer?: 'legacy' | 'auto' | 'native-dom';
|
|
2452
|
+
/**
|
|
2453
|
+
* 是否启用 setup 首帧渲染屏障;默认开启。
|
|
2454
|
+
* 关闭后退回静态初值直接渲染,依赖 setup 的组件属性可能在首帧传入空值。
|
|
2455
|
+
*/
|
|
2456
|
+
setupInitialRenderBarrier?: boolean;
|
|
2434
2457
|
astEngine?: AstEngineName$1;
|
|
2435
2458
|
isPage?: boolean;
|
|
2436
2459
|
isApp?: boolean;
|
|
@@ -3018,4 +3041,4 @@ interface CollectVueTemplateTagsOptions {
|
|
|
3018
3041
|
* 收集 Vue 模板中的自定义组件标签。
|
|
3019
3042
|
*/
|
|
3020
3043
|
export declare function collectVueTemplateTags(template: string, options: CollectVueTemplateTagsOptions): Set<string>;
|
|
3021
|
-
export { type AstEngineName, type AutoImportTagsOptions, type AutoUsingComponentsOptions, type BindingCondition, type ClassStyleBinding, type ClassStyleRuntime, type CollectVueTemplateTagsOptions, type CompileVueFileOptions, type CompilerAppShell, type CompilerDiagnostic, type CompilerDiagnosticCode, type CompilerDiagnosticSeverity, type CompilerDiagnosticSource, type CompilerLayoutPropValue, type CompilerPageLayout, type CompilerPageLayoutPlan, type ComponentStyleOptions, type ComponentStylePrimitive, type ExtractPageDeclarationWithDependenciesResult, type ForParseResult, type InlineExpressionAsset, type JsLikeLang, type JsonConfig, type JsonMergeContext, type JsonMergeFunction, type JsonMergeStage, type JsonMergeStrategy, type MiniProgramPlatform, type ModuleResolver, type MpPlatform, type ReadAndParseSfcOptions, type ResolveSfcBlockSrcOptions, type ResolvedUsingComponentInfo, type ResolvedUsingComponentPath, type ScopedSlotComponentAsset, type SlotFallbackWrapperComponentAsset, type SlotFallbackWrapperStrategy, type SourcePosition, type SourceSpan, type StaticComponentStyleOption, type StaticPageDeclaration, type StaticPageMeta, type StaticRouteValue, type StyleCompileOptions, type StyleCompileResult, type TemplateCompileOptions, type TemplateCompileResult, type TemplateRefBinding, type TransformResult, type TransformScriptOptions, type TransformUniAppSourceOptions, type UniAppCompatibilityTarget, type VueSfcBlockChanges, type VueSfcBlockSignatures, type VueSfcBlockType, type VueSfcHmrSignatures, type VueTransformResult, type WevuBindingDependencyV1, type WevuBindingKind, type WevuBindingManifestFeaturesV1, type WevuBindingManifestV1, type WevuBindingRecordV1, type WevuBindingScopeV1, type WevuBindingUpdateMode, type WevuDefaults, type WevuRuntimeBindingManifestMode, type WevuRuntimeBindingManifestV1, type WevuRuntimeBindingRecordV1, compileVueFile as compileSfc, compileVueStyleToWxss as compileStyle, compileVueTemplateToWxml as compileTemplate, transformScript as transformSfcScript };
|
|
3044
|
+
export { type AstEngineName, type AutoImportTagsOptions, type AutoUsingComponentsOptions, type BaseLibraryHintState, type BindingCondition, type ClassStyleBinding, type ClassStyleRuntime, type CollectVueTemplateTagsOptions, type CompileVueFileOptions, type CompilerAppShell, type CompilerDiagnostic, type CompilerDiagnosticCode, type CompilerDiagnosticSeverity, type CompilerDiagnosticSource, type CompilerLayoutPropValue, type CompilerPageLayout, type CompilerPageLayoutPlan, type ComponentStyleOptions, type ComponentStylePrimitive, type ExtractPageDeclarationWithDependenciesResult, type ForParseResult, type InlineExpressionAsset, type JsLikeLang, type JsonConfig, type JsonMergeContext, type JsonMergeFunction, type JsonMergeStage, type JsonMergeStrategy, type MiniProgramPlatform, type ModuleResolver, type MpPlatform, type ReadAndParseSfcOptions, type ResolveSfcBlockSrcOptions, type ResolvedUsingComponentInfo, type ResolvedUsingComponentPath, type ScopedSlotComponentAsset, type SlotFallbackWrapperComponentAsset, type SlotFallbackWrapperStrategy, type SourcePosition, type SourceSpan, type StaticComponentStyleOption, type StaticPageDeclaration, type StaticPageMeta, type StaticRouteValue, type StyleCompileOptions, type StyleCompileResult, type TemplateCompileOptions, type TemplateCompileResult, type TemplateRefBinding, type TransformResult, type TransformScriptOptions, type TransformUniAppSourceOptions, type UniAppCompatibilityTarget, type VueSfcBlockChanges, type VueSfcBlockSignatures, type VueSfcBlockType, type VueSfcHmrSignatures, type VueTransformResult, type WevuBindingDependencyV1, type WevuBindingKind, type WevuBindingManifestFeaturesV1, type WevuBindingManifestV1, type WevuBindingRecordV1, type WevuBindingScopeV1, type WevuBindingUpdateMode, type WevuDefaults, type WevuRuntimeBindingManifestMode, type WevuRuntimeBindingManifestV1, type WevuRuntimeBindingRecordV1, compileVueFile as compileSfc, compileVueStyleToWxss as compileStyle, compileVueTemplateToWxml as compileTemplate, transformScript as transformSfcScript };
|