@vizejs/vite-plugin 0.424.7 → 0.424.9

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-nk8CGiuD.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-DliFOfUZ.mjs";
2
2
  import { Plugin } from "vite";
3
3
 
4
4
  //#region src/virtual.d.ts
@@ -1,4 +1,4 @@
1
- import { f as ResolvedVizeConfig } from "../types-nk8CGiuD.mjs";
1
+ import { f as ResolvedVizeConfig } from "../types-DliFOfUZ.mjs";
2
2
  import { ResolvedConfig } from "vite";
3
3
 
4
4
  //#region src/internal/config-bridge.d.ts
@@ -736,19 +736,80 @@ interface LoadConfigOptions {
736
736
  }
737
737
  //#endregion
738
738
  //#region src/experimental-options.d.ts
739
+ /**
740
+ * Switch shape for experimental Vue compiler features.
741
+ *
742
+ * Missing keys, `false`, and `null` are disabled. `true` and object values are
743
+ * enabled; object values are accepted so future per-feature options can be
744
+ * added without changing the top-level config shape. Prefer `{}` over an
745
+ * arbitrary object until a specific feature documents nested options.
746
+ */
739
747
  type ExperimentalSwitch = boolean | null | Record<string, unknown>;
748
+ /**
749
+ * Fully opt-in Vue RFC and backend experiments.
750
+ *
751
+ * Direct `vize({ experimentals })` values take precedence over shared
752
+ * `vize.config.*` values. Passing `false` or `null` directly disables a shared
753
+ * opt-in for that plugin invocation. Prefer stable `compiler` options when a
754
+ * backend choice is no longer experimental for the project. See
755
+ * https://vizejs.dev/guide/experimentals for examples, aliases, and the full
756
+ * surface matrix.
757
+ */
740
758
  interface ExperimentalOptions {
759
+ /**
760
+ * Enable experimental SFC Vapor backend routing unless stable
761
+ * `compiler.vapor` or direct `vize({ vapor })` is set. Use this for trials;
762
+ * use the stable `compiler` or direct plugin option for an intentional
763
+ * project-wide backend choice.
764
+ */
741
765
  vapor?: ExperimentalSwitch;
766
+ /**
767
+ * Default JSX/TSX output to Vapor unless `compiler.jsxMode` or direct
768
+ * `jsxMode` is set. Per-file `"use vue:vapor"` and `"use vue:vdom"`
769
+ * directives still describe file-local intent.
770
+ */
742
771
  jsxVapor?: ExperimentalSwitch;
772
+ /** Compatibility alias for `inTagComment`; new configs should use `inTagComment`. */
743
773
  intagComment?: ExperimentalSwitch;
774
+ /**
775
+ * Vue RFC #831: parse compile-time-only `//` comments inside start tags.
776
+ * These comments are kept for tooling/source mapping and produce no runtime
777
+ * output.
778
+ */
744
779
  inTagComment?: ExperimentalSwitch;
780
+ /** Legacy typo alias for `patternedTemplate`; do not set both names. */
745
781
  pattenedTemplate?: ExperimentalSwitch;
782
+ /**
783
+ * Vue RFC #823: enable `v-match` containers and direct `v-when` pattern
784
+ * branches. Vize lowers them to ordinary conditional render code and reports
785
+ * invalid placements instead of passing unknown directives through.
786
+ */
746
787
  patternedTemplate?: ExperimentalSwitch;
788
+ /**
789
+ * Vue RFC #833: reserve exact `<Self>` for recursive component resolution in
790
+ * DOM, SSR, and Vapor compilation.
791
+ */
747
792
  selfComponent?: ExperimentalSwitch;
793
+ /**
794
+ * Vue RFC #734: enable virtual-TypeScript checks for strict slot child
795
+ * contracts. This affects `vize check`/LSP virtual code, not runtime
796
+ * compilation.
797
+ */
748
798
  strictSlotChildren?: ExperimentalSwitch;
799
+ /**
800
+ * Enable the reserved server-script compiler experiment for hosts that test
801
+ * it. Some runtimes intentionally keep the switch reserved until their
802
+ * compiler stage owns the experiment.
803
+ */
749
804
  serverScript?: ExperimentalSwitch;
805
+ /** Compatibility alias for `serverScript`. */
750
806
  "server script"?: ExperimentalSwitch;
751
807
  }
808
+ /**
809
+ * Native compiler flags resolved from `experimentals` and direct plugin
810
+ * options. These are already booleans: they do not understand aliases, switch
811
+ * objects, or shared-config precedence.
812
+ */
752
813
  interface ExperimentalCompileFlags {
753
814
  experimentalInTagComments?: boolean;
754
815
  experimentalPatternedTemplate?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/vite-plugin",
3
- "version": "0.424.7",
3
+ "version": "0.424.9",
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.424.7",
48
+ "@vizejs/native": "0.424.9",
49
49
  "oxc-parser": "0.144.0",
50
50
  "tinyglobby": "0.2.17",
51
- "vize": "0.424.7"
51
+ "vize": "0.424.9"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/node": "25.9.2",