@vizejs/vite-plugin 0.423.1 → 0.424.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/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as VizeInspectorLintPlanProvider, c as VizeCompatibilityOptions, d as LoadConfigOptions, f as ResolvedVizeConfig, i as VizeVueFeatures, l as VizeVueVersion, m as VizeConfig, n as CompiledModule, o as VizeInspectorLintPlanRequest, p as UserConfigExport, r as MacroArtifact, s as VizeInspectorOptions, t as VizeOptions, u as ConfigEnv } from "./types-bT8mHbbM.mjs";
1
+ import { a as VizeInspectorLintPlanProvider, c as VizeCompatibilityOptions, d as LoadConfigOptions, f as ResolvedVizeConfig, i as VizeVueFeatures, l as VizeVueVersion, m as VizeConfig, n as CompiledModule, o as VizeInspectorLintPlanRequest, p as UserConfigExport, r as MacroArtifact, s as VizeInspectorOptions, t as VizeOptions, u as ConfigEnv } from "./types-nk8CGiuD.mjs";
2
2
  import { Plugin } from "vite";
3
3
 
4
4
  //#region src/virtual.d.ts
package/dist/index.mjs CHANGED
@@ -834,6 +834,8 @@ function getCompileOptionsForRequest(state, ssr) {
834
834
  if (state.mergedOptions?.vueVersion !== void 0) options.vueVersion = state.mergedOptions.vueVersion;
835
835
  if (state.mergedOptions?.experimentalInTagComments) options.experimentalInTagComments = true;
836
836
  if (state.mergedOptions?.experimentalPatternedTemplate) options.experimentalPatternedTemplate = true;
837
+ if (state.mergedOptions?.experimentalSelfComponent) options.experimentalSelfComponent = true;
838
+ if (state.mergedOptions?.experimentalStrictSlotChildren) options.experimentalStrictSlotChildren = true;
837
839
  if (state.mergedOptions?.experimentalServerScript) options.experimentalServerScript = true;
838
840
  return options;
839
841
  }
@@ -967,6 +969,8 @@ function buildCompileFileOptions(filePath, options) {
967
969
  ...options.customElements === void 0 ? {} : { customElements: options.customElements },
968
970
  experimentalInTagComments: options.experimentalInTagComments ?? false,
969
971
  experimentalPatternedTemplate: options.experimentalPatternedTemplate ?? false,
972
+ experimentalSelfComponent: options.experimentalSelfComponent ?? false,
973
+ experimentalStrictSlotChildren: options.experimentalStrictSlotChildren ?? false,
970
974
  experimentalServerScript: options.experimentalServerScript ?? false,
971
975
  scopeId: `data-v-${generateScopeId(filePath)}`,
972
976
  styleTrim: options.styleTrim,
@@ -989,6 +993,8 @@ function buildCompileBatchOptions(options) {
989
993
  ...options.customElements === void 0 ? {} : { customElements: options.customElements },
990
994
  experimentalInTagComments: options.experimentalInTagComments ?? false,
991
995
  experimentalPatternedTemplate: options.experimentalPatternedTemplate ?? false,
996
+ experimentalSelfComponent: options.experimentalSelfComponent ?? false,
997
+ experimentalStrictSlotChildren: options.experimentalStrictSlotChildren ?? false,
992
998
  experimentalServerScript: options.experimentalServerScript ?? false,
993
999
  includeStyles: true,
994
1000
  includeMacroArtifacts: true,
@@ -1667,6 +1673,8 @@ function resolvePrecompileBatchOptions(state) {
1667
1673
  templateSyntax: state.mergedOptions.templateSyntax ?? "standard",
1668
1674
  experimentalInTagComments: state.mergedOptions.experimentalInTagComments ?? false,
1669
1675
  experimentalPatternedTemplate: state.mergedOptions.experimentalPatternedTemplate ?? false,
1676
+ experimentalSelfComponent: state.mergedOptions.experimentalSelfComponent ?? false,
1677
+ experimentalStrictSlotChildren: state.mergedOptions.experimentalStrictSlotChildren ?? false,
1670
1678
  experimentalServerScript: state.mergedOptions.experimentalServerScript ?? false,
1671
1679
  runtimeModuleName: state.mergedOptions.runtimeModuleName,
1672
1680
  runtimeGlobalName: state.mergedOptions.runtimeGlobalName,
@@ -3767,6 +3775,8 @@ function resolveExperimentalOptions(options, config) {
3767
3775
  jsxVapor: enabled(options?.jsxVapor, config?.jsxVapor),
3768
3776
  inTagComments: enabled(options?.intagComment, options?.inTagComment, config?.intagComment, config?.inTagComment),
3769
3777
  patternedTemplate: enabled(options?.pattenedTemplate, options?.patternedTemplate, config?.pattenedTemplate, config?.patternedTemplate),
3778
+ selfComponent: enabled(options?.selfComponent, config?.selfComponent),
3779
+ strictSlotChildren: enabled(options?.strictSlotChildren, config?.strictSlotChildren),
3770
3780
  serverScript: enabled(options?.serverScript, options?.["server script"], config?.serverScript, config?.["server script"])
3771
3781
  };
3772
3782
  }
@@ -3778,6 +3788,8 @@ function resolveExperimentalCompilerOptions(options, compilerConfig, config) {
3778
3788
  jsxCompat: options.jsxCompat ?? compilerConfig?.jsxCompat,
3779
3789
  experimentalInTagComments: experimentals.inTagComments,
3780
3790
  experimentalPatternedTemplate: experimentals.patternedTemplate,
3791
+ experimentalSelfComponent: experimentals.selfComponent,
3792
+ experimentalStrictSlotChildren: experimentals.strictSlotChildren,
3781
3793
  experimentalServerScript: experimentals.serverScript
3782
3794
  };
3783
3795
  }
@@ -1,4 +1,4 @@
1
- import { f as ResolvedVizeConfig } from "../types-bT8mHbbM.mjs";
1
+ import { f as ResolvedVizeConfig } from "../types-nk8CGiuD.mjs";
2
2
  import { ResolvedConfig } from "vite";
3
3
 
4
4
  //#region src/internal/config-bridge.d.ts
@@ -744,12 +744,16 @@ interface ExperimentalOptions {
744
744
  inTagComment?: ExperimentalSwitch;
745
745
  pattenedTemplate?: ExperimentalSwitch;
746
746
  patternedTemplate?: ExperimentalSwitch;
747
+ selfComponent?: ExperimentalSwitch;
748
+ strictSlotChildren?: ExperimentalSwitch;
747
749
  serverScript?: ExperimentalSwitch;
748
750
  "server script"?: ExperimentalSwitch;
749
751
  }
750
752
  interface ExperimentalCompileFlags {
751
753
  experimentalInTagComments?: boolean;
752
754
  experimentalPatternedTemplate?: boolean;
755
+ experimentalSelfComponent?: boolean;
756
+ experimentalStrictSlotChildren?: boolean;
753
757
  experimentalServerScript?: boolean;
754
758
  }
755
759
  interface ExperimentalPluginOptions extends ExperimentalCompileFlags {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/vite-plugin",
3
- "version": "0.423.1",
3
+ "version": "0.424.0",
4
4
  "description": "High-performance native Vite plugin for Vue SFC compilation powered by Vize",
5
5
  "keywords": [
6
6
  "compiler",
@@ -45,10 +45,10 @@
45
45
  "access": "public"
46
46
  },
47
47
  "dependencies": {
48
- "@vizejs/native": "0.423.1",
48
+ "@vizejs/native": "0.424.0",
49
49
  "oxc-parser": "0.144.0",
50
50
  "tinyglobby": "0.2.17",
51
- "vize": "0.423.1"
51
+ "vize": "0.424.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "25.9.2",