@vizejs/vite-plugin 0.290.0 → 0.291.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,866 +1,6 @@
1
+ import { a as VizeVueVersion, c as ResolvedVizeConfig, i as VizeOptions, l as UserConfigExport, n as MacroArtifact, o as ConfigEnv, r as VizeCompatibilityOptions, s as LoadConfigOptions, t as CompiledModule, u as VizeConfig } from "./types-x-lq08Y8.mjs";
1
2
  import { Plugin } from "vite";
2
3
 
3
- //#region ../../cli/src/types/generated.d.ts
4
- /**
5
- * Host Vue runtime version for opt-in compatibility modes
6
- */
7
- type VueVersion = "3" | "2.7" | "2" | "1" | "0.11" | "0.10";
8
- /**
9
- * Configuration file for vize - High-performance Vue.js toolchain
10
- */
11
- interface VizeConfig {
12
- /**
13
- * Human-readable entry name for inspect output and diagnostics
14
- */
15
- name?: string;
16
- /**
17
- * Directory used as the base for scoped file patterns and relative paths
18
- */
19
- basePath?: string;
20
- /**
21
- * Glob patterns this config applies to
22
- */
23
- files?: string[];
24
- /**
25
- * Glob patterns this config excludes
26
- */
27
- ignores?: string[];
28
- /**
29
- * Base config files or presets to compose
30
- */
31
- extends?: string | string[];
32
- compiler?: CompilerConfig;
33
- experimentals?: Record<string, boolean | Record<string, unknown> | null>;
34
- vite?: VitePluginConfig;
35
- linter?: LinterConfig;
36
- typeChecker?: TypeCheckerConfig;
37
- formatter?: FormatterConfig;
38
- languageServer?: LanguageServerConfig;
39
- lsp?: LanguageServerConfig;
40
- musea?: MuseaConfig;
41
- globalTypes?: GlobalTypesConfig;
42
- /**
43
- * Scoped config entries for monorepos and workspaces
44
- */
45
- entries?: VizeConfigEntry[];
46
- }
47
- /**
48
- * Vue compiler options
49
- */
50
- interface CompilerConfig {
51
- /**
52
- * Compilation mode
53
- */
54
- mode?: "module" | "function";
55
- /**
56
- * Enable Vapor mode compilation
57
- */
58
- vapor?: boolean;
59
- /**
60
- * Default output mode for .jsx/.tsx components without a "use vue:*" directive
61
- */
62
- jsxMode?: "vdom" | "vapor";
63
- /**
64
- * Treat lowercase non-HTML tags as custom renderer elements
65
- */
66
- customRenderer?: boolean;
67
- /**
68
- * Enable SSR mode
69
- */
70
- ssr?: boolean;
71
- /**
72
- * Template syntax compatibility mode
73
- */
74
- templateSyntax?: "standard" | "strict" | "quirks";
75
- /**
76
- * Enable source map generation
77
- */
78
- sourceMap?: boolean;
79
- /**
80
- * Prefix template identifiers with _ctx
81
- */
82
- prefixIdentifiers?: boolean;
83
- /**
84
- * Hoist static nodes
85
- */
86
- hoistStatic?: boolean;
87
- /**
88
- * Cache v-on handlers
89
- */
90
- cacheHandlers?: boolean;
91
- /**
92
- * Enable TypeScript parsing in <script> blocks
93
- */
94
- isTs?: boolean;
95
- /**
96
- * Script file extension for generated output
97
- */
98
- scriptExt?: "ts" | "js";
99
- /**
100
- * Module name for runtime imports
101
- */
102
- runtimeModuleName?: string;
103
- /**
104
- * Global variable name for runtime (IIFE builds)
105
- */
106
- runtimeGlobalName?: string;
107
- compatibility?: CompilerCompatibilityConfig;
108
- }
109
- /**
110
- * Opt-in compatibility features for unsupported host/runtime combinations
111
- */
112
- interface CompilerCompatibilityConfig {
113
- vueVersion?: VueVersion;
114
- /**
115
- * Delegate .vue compilation to the host Vue compiler for legacy Vue runtimes
116
- */
117
- hostCompiler?: boolean;
118
- /**
119
- * Enable <script setup> when emitting function-body output for CDN/global Vue usage
120
- */
121
- scriptSetupInStandalone?: boolean;
122
- /**
123
- * Allow Vapor output for Options API SFCs when Vapor mode is enabled
124
- */
125
- optionsApiVapor?: boolean;
126
- /**
127
- * Host Nuxt major version for compatibility bridges
128
- */
129
- nuxtVersion?: 2 | 3 | 4;
130
- /**
131
- * Host Webpack major version for compatibility bridges
132
- */
133
- webpackVersion?: 4 | 5;
134
- }
135
- interface VitePluginConfig {
136
- /**
137
- * Files to include in compilation (glob patterns or strings)
138
- */
139
- include?: string | RegExp | (string | RegExp)[];
140
- /**
141
- * Files to exclude from compilation (glob patterns or strings)
142
- */
143
- exclude?: string | RegExp | (string | RegExp)[];
144
- /**
145
- * Glob patterns to scan for .vue files during pre-compilation
146
- */
147
- scanPatterns?: string[];
148
- /**
149
- * Glob patterns to ignore during pre-compilation
150
- */
151
- ignorePatterns?: string[];
152
- }
153
- /**
154
- * Linter options
155
- */
156
- interface LinterConfig {
157
- /**
158
- * Enable linting
159
- */
160
- enabled?: boolean;
161
- /** Built-in lint preset */
162
- preset?: "happy-path" | "opinionated" | "essential" | "incremental" | "ecosystem" | "nuxt";
163
- /** Enable native type-aware lint rules from the active lint configuration */
164
- typeAware?: boolean;
165
- /**
166
- * Rules to enable/disable
167
- */
168
- rules?: {
169
- [k: string]: "off" | "warn" | "error";
170
- };
171
- /**
172
- * Category-level severity overrides
173
- */
174
- categories?: {
175
- correctness?: "off" | "warn" | "error";
176
- suspicious?: "off" | "warn" | "error";
177
- style?: "off" | "warn" | "error";
178
- perf?: "off" | "warn" | "error";
179
- a11y?: "off" | "warn" | "error";
180
- security?: "off" | "warn" | "error";
181
- };
182
- }
183
- interface TypeCheckerConfig {
184
- /**
185
- * Enable type checking
186
- */
187
- enabled?: boolean;
188
- /**
189
- * Enable strict mode
190
- */
191
- strict?: boolean;
192
- /**
193
- * Check component props
194
- */
195
- checkProps?: boolean;
196
- /**
197
- * Check component emits
198
- */
199
- checkEmits?: boolean;
200
- /**
201
- * Check template bindings
202
- */
203
- checkTemplateBindings?: boolean;
204
- /**
205
- * Check reactivity loss patterns
206
- */
207
- checkReactivity?: boolean;
208
- /**
209
- * Check setup context violations
210
- */
211
- checkSetupContext?: boolean;
212
- /**
213
- * Check invalid exports in <script setup>
214
- */
215
- checkInvalidExports?: boolean;
216
- /**
217
- * Check fallthrough attrs on multi-root templates
218
- */
219
- checkFallthroughAttrs?: boolean;
220
- /** Resolve Vue 3 Options API template bindings during type checking. */
221
- optionsApi?: boolean;
222
- /**
223
- * Enable Vue 2.7 / Nuxt 2 Options API template binding support
224
- */
225
- legacyVue2?: boolean;
226
- /**
227
- * Opt-in type-checking of .jsx/.tsx Vue components (#1497). Default-off so mixed Vue/React repositories do not accidentally route React .tsx through the Vue JSX checker. Set to true to route .jsx/.tsx through the Vize JSX virtual-TS path.
228
- */
229
- jsxTypecheck?: boolean;
230
- /**
231
- * Path to tsconfig.json
232
- */
233
- tsconfig?: string;
234
- /** Path to the Corsa executable. tsgoPath is kept as a compatibility alias. */
235
- corsaPath?: string;
236
- /**
237
- * Deprecated alias for typeChecker.corsaPath
238
- */
239
- tsgoPath?: string;
240
- /**
241
- * Path to a .d.ts file that declares template globals
242
- */
243
- globalsFile?: string;
244
- /**
245
- * Reserved Corsa server count. The direct project-session runner currently supports only 1.
246
- */
247
- servers?: number;
248
- }
249
- /**
250
- * Formatter options
251
- */
252
- interface FormatterConfig {
253
- /**
254
- * Max line width
255
- */
256
- printWidth?: number;
257
- /**
258
- * Indentation width
259
- */
260
- tabWidth?: number;
261
- /**
262
- * Use tabs for indentation
263
- */
264
- useTabs?: boolean;
265
- /**
266
- * Print semicolons
267
- */
268
- semi?: boolean;
269
- /**
270
- * Use single quotes
271
- */
272
- singleQuote?: boolean;
273
- /**
274
- * Use single quotes in JSX
275
- */
276
- jsxSingleQuote?: boolean;
277
- /**
278
- * Trailing commas
279
- */
280
- trailingComma?: "all" | "none" | "es5";
281
- /**
282
- * Print spaces between brackets in object literals
283
- */
284
- bracketSpacing?: boolean;
285
- /**
286
- * Keep > on the last line of multiline tags
287
- */
288
- bracketSameLine?: boolean;
289
- /**
290
- * Arrow parens mode
291
- */
292
- arrowParens?: "always" | "avoid";
293
- /**
294
- * End-of-line mode
295
- */
296
- endOfLine?: "lf" | "crlf" | "cr" | "auto";
297
- /**
298
- * Object property quoting mode
299
- */
300
- quoteProps?: "as-needed" | "consistent" | "preserve";
301
- /**
302
- * Force one attribute per line
303
- */
304
- singleAttributePerLine?: boolean;
305
- /**
306
- * Indent script and style blocks
307
- */
308
- vueIndentScriptAndStyle?: boolean;
309
- /**
310
- * Sort attributes
311
- */
312
- sortAttributes?: boolean;
313
- /**
314
- * Attribute ordering strategy
315
- */
316
- attributeSortOrder?: "alphabetical" | "as-written";
317
- /**
318
- * Merge bind and non-bind attrs for sorting
319
- */
320
- mergeBindAndNonBindAttrs?: boolean;
321
- /**
322
- * Maximum attributes per line before wrapping
323
- */
324
- maxAttributesPerLine?: number;
325
- /**
326
- * Custom attribute groups
327
- */
328
- attributeGroups?: string[][];
329
- /**
330
- * Normalize directive shorthands
331
- */
332
- normalizeDirectiveShorthands?: boolean;
333
- /**
334
- * Sort SFC blocks in canonical order
335
- */
336
- sortBlocks?: boolean;
337
- }
338
- /**
339
- * Language server options
340
- */
341
- interface LanguageServerConfig {
342
- /**
343
- * Enable the language server
344
- */
345
- enabled?: boolean;
346
- /**
347
- * Enable lint diagnostics
348
- */
349
- lint?: boolean;
350
- /**
351
- * Deprecated alias for lint
352
- */
353
- diagnostics?: boolean;
354
- /**
355
- * Enable project type checking diagnostics
356
- */
357
- typecheck?: boolean;
358
- /**
359
- * Enable editor-oriented IDE features
360
- */
361
- editor?: boolean;
362
- /**
363
- * Enable Vue ecosystem lint and editor helpers
364
- */
365
- ecosystem?: boolean;
366
- /**
367
- * Enable Vue 2.7 / Nuxt 2 editor and type-checking compatibility
368
- */
369
- legacyVue2?: boolean;
370
- /**
371
- * Enable completions
372
- */
373
- completion?: boolean;
374
- /**
375
- * Enable hover information
376
- */
377
- hover?: boolean;
378
- /**
379
- * Enable go-to-definition
380
- */
381
- definition?: boolean;
382
- /**
383
- * Enable reference search
384
- */
385
- references?: boolean;
386
- /**
387
- * Enable document symbols
388
- */
389
- documentSymbols?: boolean;
390
- /**
391
- * Enable workspace symbols
392
- */
393
- workspaceSymbols?: boolean;
394
- /**
395
- * Enable formatting via the language server
396
- */
397
- formatting?: boolean;
398
- /**
399
- * Enable code actions
400
- */
401
- codeActions?: boolean;
402
- /**
403
- * Enable rename support
404
- */
405
- rename?: boolean;
406
- /**
407
- * Enable code lenses
408
- */
409
- codeLens?: boolean;
410
- /**
411
- * Enable semantic tokens
412
- */
413
- semanticTokens?: boolean;
414
- /**
415
- * Enable document links
416
- */
417
- documentLinks?: boolean;
418
- /**
419
- * Enable folding ranges
420
- */
421
- foldingRanges?: boolean;
422
- /**
423
- * Enable inlay hints
424
- */
425
- inlayHints?: boolean;
426
- /**
427
- * Enable file rename edits
428
- */
429
- fileRename?: boolean;
430
- /**
431
- * Enable Corsa-backed IDE features
432
- */
433
- corsa?: boolean;
434
- /**
435
- * Deprecated alias for corsa
436
- */
437
- tsgo?: boolean;
438
- }
439
- /**
440
- * Musea component gallery options
441
- */
442
- interface MuseaConfig {
443
- /**
444
- * Glob patterns for art files
445
- */
446
- include?: string[];
447
- /**
448
- * Glob patterns to exclude
449
- */
450
- exclude?: string[];
451
- /**
452
- * Base path for gallery
453
- */
454
- basePath?: string;
455
- /**
456
- * Enable Storybook compatibility
457
- */
458
- storybookCompat?: boolean;
459
- /**
460
- * Enable inline art detection in .vue files
461
- */
462
- inlineArt?: boolean;
463
- vrt?: MuseaVrtConfig;
464
- a11y?: MuseaA11yConfig;
465
- autogen?: MuseaAutogenConfig;
466
- }
467
- /**
468
- * VRT (Visual Regression Testing) configuration
469
- */
470
- interface MuseaVrtConfig {
471
- /**
472
- * Threshold for pixel comparison (0-1)
473
- */
474
- threshold?: number;
475
- /**
476
- * Output directory for screenshots
477
- */
478
- outDir?: string;
479
- /**
480
- * Viewport sizes
481
- */
482
- viewports?: MuseaViewport[];
483
- }
484
- interface MuseaViewport {
485
- /**
486
- * Viewport width
487
- */
488
- width: number;
489
- /**
490
- * Viewport height
491
- */
492
- height: number;
493
- /**
494
- * Viewport name
495
- */
496
- name?: string;
497
- }
498
- /**
499
- * A11y configuration
500
- */
501
- interface MuseaA11yConfig {
502
- /**
503
- * Enable a11y checking
504
- */
505
- enabled?: boolean;
506
- /**
507
- * Axe-core rules to enable/disable
508
- */
509
- rules?: {
510
- [k: string]: boolean;
511
- };
512
- }
513
- /**
514
- * Autogen configuration
515
- */
516
- interface MuseaAutogenConfig {
517
- /**
518
- * Enable auto-generation of variants
519
- */
520
- enabled?: boolean;
521
- /**
522
- * Max variants to generate per component
523
- */
524
- maxVariants?: number;
525
- }
526
- /**
527
- * Global type declarations
528
- */
529
- interface GlobalTypesConfig {
530
- [k: string]: string | GlobalTypeDeclaration;
531
- }
532
- /**
533
- * Global type declaration
534
- */
535
- interface GlobalTypeDeclaration {
536
- /**
537
- * TypeScript type string
538
- */
539
- type: string;
540
- /**
541
- * Default value
542
- */
543
- defaultValue?: string;
544
- }
545
- /**
546
- * Scoped Vize config entry for monorepos and workspaces
547
- */
548
- interface VizeConfigEntry {
549
- /**
550
- * Human-readable entry name for inspect output and diagnostics
551
- */
552
- name?: string;
553
- /**
554
- * Directory used as the base for scoped file patterns and relative paths
555
- */
556
- basePath?: string;
557
- /**
558
- * Glob patterns this entry applies to
559
- */
560
- files?: string[];
561
- /**
562
- * Glob patterns this entry excludes
563
- */
564
- ignores?: string[];
565
- /**
566
- * Base config files or presets to compose
567
- */
568
- extends?: string | string[];
569
- compiler?: CompilerConfig;
570
- experimentals?: Record<string, boolean | Record<string, unknown> | null>;
571
- vite?: VitePluginConfig;
572
- linter?: LinterConfig;
573
- typeChecker?: TypeCheckerConfig;
574
- formatter?: FormatterConfig;
575
- languageServer?: LanguageServerConfig;
576
- lsp?: LanguageServerConfig;
577
- musea?: MuseaConfig;
578
- globalTypes?: GlobalTypesConfig;
579
- }
580
- //#endregion
581
- //#region ../../cli/src/types/runtime.d.ts
582
- type MaybePromise<T> = T | Promise<T>;
583
- interface ConfigEnv {
584
- mode: string;
585
- command: "serve" | "build" | "check" | "lint" | "fmt";
586
- isSsrBuild?: boolean;
587
- }
588
- type VueConfig = {
589
- /**
590
- * Vue dialect selected by the documented `vue.version` config key.
591
- */
592
- version?: VueVersion;
593
- };
594
- type UserConfigEntry = VizeConfigEntry & {
595
- /**
596
- * Shared Vue dialect section accepted by the Rust config model.
597
- */
598
- vue?: VueConfig;
599
- };
600
- type UserConfig = Omit<VizeConfig, "entries"> & {
601
- /**
602
- * Shared Vue dialect section accepted by the Rust config model.
603
- */
604
- vue?: VueConfig;
605
- /**
606
- * Legacy alias for `languageServer`.
607
- * Prefer `languageServer`.
608
- */
609
- lsp?: LanguageServerConfig;
610
- /**
611
- * Scoped config entries for monorepos and workspaces.
612
- */
613
- entries?: UserConfigEntry[];
614
- };
615
- type UserConfigInput = UserConfig | UserConfigEntry[];
616
- type ResolvedVizeConfig = VizeConfig & {
617
- /**
618
- * Normalized flat entries. Plain object configs become one entry; array configs
619
- * keep their order.
620
- */
621
- entries: VizeConfigEntry[];
622
- };
623
- type UserConfigExport = UserConfigInput | ((env: ConfigEnv) => MaybePromise<UserConfigInput>);
624
- interface LoadConfigOptions {
625
- /**
626
- * Config file search mode
627
- * - 'root': Search only in the specified root directory
628
- * - 'auto': Search from cwd upward until finding a config file
629
- * - 'none': Don't load config file
630
- * @default 'root'
631
- */
632
- mode?: "root" | "auto" | "none";
633
- /**
634
- * Custom config file path (overrides automatic search)
635
- */
636
- configFile?: string;
637
- /**
638
- * Config environment for dynamic config resolution
639
- */
640
- env?: ConfigEnv;
641
- }
642
- //#endregion
643
- //#region src/experimental-options.d.ts
644
- type ExperimentalSwitch = boolean | null | Record<string, unknown>;
645
- interface ExperimentalOptions {
646
- vapor?: ExperimentalSwitch;
647
- jsxVapor?: ExperimentalSwitch;
648
- intagComment?: ExperimentalSwitch;
649
- inTagComment?: ExperimentalSwitch;
650
- pattenedTemplate?: ExperimentalSwitch;
651
- patternedTemplate?: ExperimentalSwitch;
652
- serverScript?: ExperimentalSwitch;
653
- "server script"?: ExperimentalSwitch;
654
- }
655
- interface ExperimentalCompileFlags {
656
- experimentalInTagComments?: boolean;
657
- experimentalPatternedTemplate?: boolean;
658
- experimentalServerScript?: boolean;
659
- }
660
- interface ExperimentalPluginOptions extends ExperimentalCompileFlags {
661
- /** Experimental RFC opt-ins. Values other than `false` or `null` enable keys. */
662
- experimentals?: ExperimentalOptions;
663
- }
664
- //#endregion
665
- //#region src/types.d.ts
666
- interface MacroArtifact {
667
- kind: string;
668
- name: string;
669
- source: string;
670
- content: string;
671
- moduleCode?: string;
672
- start: number;
673
- end: number;
674
- }
675
- type VizeVueVersion = 0.11 | 1 | 2 | "2.7" | 3 | "legacy";
676
- interface VizeCompatibilityOptions {
677
- /**
678
- * Host Vue version. Vue 0.11/1/2/2.7 opt into host-compiler compatibility.
679
- */
680
- vueVersion?: VizeVueVersion;
681
- /**
682
- * Keep .vue files on the existing Vue compiler for legacy Vue runtimes.
683
- * @default true when vueVersion is 0.11, 1, 2, "2.7", or "legacy"
684
- */
685
- hostCompiler?: boolean;
686
- /**
687
- * Enable function-body output for CDN/global Vue evaluation.
688
- */
689
- scriptSetupInStandalone?: boolean;
690
- /**
691
- * Allow Vapor output for Options API SFCs when vapor is enabled.
692
- */
693
- optionsApiVapor?: boolean;
694
- /**
695
- * Override the host Nuxt major when this option object is shared with Nuxt.
696
- */
697
- nuxtVersion?: 2 | 3 | 4;
698
- /**
699
- * Override the host Webpack major when this option object is shared with unplugin.
700
- */
701
- webpackVersion?: 4 | 5;
702
- }
703
- interface VizeOptions extends ExperimentalPluginOptions {
704
- /**
705
- * Inline shared Vize config for Vite Plus-first projects.
706
- * Direct plugin options still take precedence over these values.
707
- */
708
- config?: UserConfigExport;
709
- /**
710
- * Vue major version for the host project.
711
- *
712
- * Legacy Vue projects must keep their existing compiler plugin/loader in
713
- * charge of SFC compilation. Set this to `0.11`, `1`, `2`, or `"legacy"` to
714
- * make Vize a non-invasive compatibility plugin that does not intercept
715
- * `.vue` requests or inject Vue 3 bundler defines.
716
- *
717
- * @default 3
718
- */
719
- vueVersion?: VizeVueVersion;
720
- /**
721
- * Opt-in compatibility features for unsupported host/runtime combinations.
722
- */
723
- compatibility?: VizeCompatibilityOptions;
724
- /**
725
- * Compilation output mode. Use "function" for CDN/global Vue evaluation.
726
- * @default "module"
727
- */
728
- mode?: "module" | "function";
729
- /**
730
- * Module name for runtime imports.
731
- * @default "vue"
732
- */
733
- runtimeModuleName?: string;
734
- /**
735
- * Global variable name for function/standalone output.
736
- * @default "Vue"
737
- */
738
- runtimeGlobalName?: string;
739
- /**
740
- * Override the public base used for dev-time asset URLs such as /@fs paths.
741
- * Useful for frameworks like Nuxt that serve Vite from a subpath (e.g. /_nuxt/).
742
- */
743
- devUrlBase?: string;
744
- /**
745
- * Files to include in compilation
746
- * @default /\.vue$/
747
- */
748
- include?: string | RegExp | (string | RegExp)[];
749
- /**
750
- * Files to exclude from compilation
751
- * @default /node_modules/
752
- */
753
- exclude?: string | RegExp | (string | RegExp)[];
754
- /**
755
- * Force production mode
756
- * @default auto-detected from Vite config
757
- */
758
- isProduction?: boolean;
759
- ssr?: boolean;
760
- /** Enable source map generation */
761
- sourceMap?: boolean;
762
- /**
763
- * Enable Vapor mode compilation
764
- * @default false
765
- */
766
- vapor?: boolean;
767
- /**
768
- * Default output mode for `.jsx`/`.tsx` components without a `"use vue:*"`
769
- * directive. Distinct from `vapor` (which targets `.vue` SFCs): a project can
770
- * keep SFCs on VDOM while defaulting JSX to Vapor, or vice versa. A
771
- * per-component `"use vue:vapor"` / `"use vue:vdom"` directive overrides it.
772
- * @default "vdom"
773
- */
774
- jsxMode?: "vdom" | "vapor";
775
- /**
776
- * Treat lowercase non-HTML tags as custom renderer elements instead of Vue components.
777
- * Useful for TresJS and other custom renderers.
778
- * @default false
779
- */
780
- customRenderer?: boolean;
781
- /**
782
- * Template syntax compatibility mode.
783
- * @default "standard"
784
- */
785
- templateSyntax?: "standard" | "strict" | "quirks";
786
- /**
787
- * Root directory to scan for .vue files
788
- * @default Vite's root
789
- */
790
- root?: string;
791
- /**
792
- * Glob patterns to scan for .vue files during pre-compilation
793
- * Use an empty array to disable startup pre-compilation and compile on demand.
794
- * @default ['**\/*.vue']
795
- */
796
- scanPatterns?: string[];
797
- /**
798
- * Maximum number of Vue files to compile in a single native batch during
799
- * pre-compilation. Lower values reduce peak V8 heap usage in large apps.
800
- * @default 128
801
- */
802
- precompileBatchSize?: number;
803
- /**
804
- * Glob patterns to ignore during pre-compilation
805
- * @default ['node_modules/**', 'dist/**', '.git/**', '.nuxt/**', '.output/**', '.nitro/**', 'coverage/**']
806
- */
807
- ignorePatterns?: string[];
808
- /**
809
- * Config file search mode
810
- * - 'root': Search only in the project root directory
811
- * - 'auto': Search from cwd upward until finding a config file
812
- * - false: Disable config file loading
813
- * @default 'root'
814
- */
815
- configMode?: "root" | "auto" | false;
816
- /**
817
- * Custom config file path (overrides automatic search)
818
- */
819
- configFile?: string;
820
- /**
821
- * Handle .vue files in node_modules (on-demand compilation).
822
- * When true, vize will compile .vue files from node_modules that other plugins
823
- * (like vite-plugin-vue-inspector) may import directly.
824
- * Set to false if another Vue plugin (e.g. Nuxt) handles node_modules .vue files.
825
- * @default true
826
- */
827
- handleNodeModulesVue?: boolean;
828
- /**
829
- * Enable debug logging
830
- * @default false
831
- */
832
- debug?: boolean;
833
- }
834
- interface StyleBlockInfo {
835
- /** Raw style content (uncompiled for preprocessor langs) */
836
- content: string;
837
- /** External source path from `<style src>`, when present */
838
- src?: string | null;
839
- /** Language of the style block (e.g., "css", "scss", "less", "sass", "stylus") */
840
- lang: string | null;
841
- /** Whether the style block has the scoped attribute */
842
- scoped: boolean;
843
- /** CSS Modules: true for unnamed `module`, or the binding name for `module="name"` */
844
- module: boolean | string;
845
- /** Index of this style block in the SFC */
846
- index: number;
847
- }
848
- interface CompiledModule {
849
- code: string;
850
- css?: string;
851
- scopeId: string;
852
- hasScoped: boolean;
853
- templateHash?: string;
854
- styleHash?: string;
855
- scriptHash?: string;
856
- /** Compile-time macro artifacts extracted from the source SFC */
857
- macroArtifacts?: MacroArtifact[];
858
- /** Per-block style metadata extracted from the source SFC */
859
- styles?: StyleBlockInfo[];
860
- /** Files loaded through SFC `src` imports */
861
- dependencies?: string[];
862
- }
863
- //#endregion
864
4
  //#region src/virtual.d.ts
865
5
  interface DynamicImportAliasRule {
866
6
  fromPrefix: string;
@@ -888,7 +28,10 @@ declare const VIZE_CONFIG_FILE_ENV = "VIZE_CONFIG_FILE";
888
28
  /**
889
29
  * Shared config store for inter-plugin communication.
890
30
  * Key = project root, Value = resolved VizeConfig.
891
- * Used by musea() and other plugins to access the unified config.
31
+ *
32
+ * @deprecated Root identity cannot isolate parallel Vite client/SSR instances
33
+ * or servers. This export remains temporarily for compatibility; internal Vize
34
+ * integrations use an exact `ResolvedConfig`-scoped bridge instead.
892
35
  */
893
36
  declare const vizeConfigStore: Map<string, ResolvedVizeConfig>;
894
37
  //#endregion