@vizejs/vite-plugin 0.431.0 → 0.433.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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/internal/config-bridge.d.mts +1 -1
- package/dist/internal/vite-plus-task.mjs +1 -1
- package/dist/{plugin-DZV6zTPW.mjs → plugin-CbLeHx5e.mjs} +3 -0
- package/dist/plugin-_ejkFWKG.mjs +2 -0
- package/dist/{runner-D0tDOiOp.mjs → runner-BewZHurL.mjs} +4 -0
- package/dist/{types-NyrQJOwS.d.mts → types-D7IFtAEo.d.mts} +2 -0
- package/dist/vite-plus.d.mts +1 -1
- package/dist/vite-plus.mjs +2 -2
- package/package.json +4 -4
- package/dist/plugin-9jvcWEU8.mjs +0 -2
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 UserConfigExport, n as CompiledModule, o as VizeInspectorLintPlanRequest, r as MacroArtifact, s as VizeInspectorOptions, t as VizeOptions, u as ConfigEnv, y as VizeConfig } from "./types-
|
|
1
|
+
import { a as VizeInspectorLintPlanProvider, c as VizeCompatibilityOptions, d as LoadConfigOptions, f as ResolvedVizeConfig, i as VizeVueFeatures, l as VizeVueVersion, m as UserConfigExport, n as CompiledModule, o as VizeInspectorLintPlanRequest, r as MacroArtifact, s as VizeInspectorOptions, t as VizeOptions, u as ConfigEnv, y as VizeConfig } from "./types-D7IFtAEo.mjs";
|
|
2
2
|
import { Plugin } from "vite";
|
|
3
3
|
|
|
4
4
|
//#region src/virtual.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as rewriteStaticAssetUrls, t as vize } from "./plugin-
|
|
1
|
+
import { n as rewriteStaticAssetUrls, t as vize } from "./plugin-CbLeHx5e.mjs";
|
|
2
2
|
import { a as vizeConfigStore, i as resolveConfigExport, n as defineConfig, r as loadConfig, t as VIZE_CONFIG_FILE_ENV } from "./config-PP6EAmWc.mjs";
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
const __internal = { rewriteStaticAssetUrls };
|
|
@@ -902,6 +902,7 @@ function getCompileOptionsForRequest(state, ssr, file) {
|
|
|
902
902
|
templateComments: !state.isProduction,
|
|
903
903
|
...resolvePluginVueCompileOptions(mergedOptions ?? {})
|
|
904
904
|
};
|
|
905
|
+
if (mergedOptions?.nuxtPageMeta !== void 0) options.nuxtPageMeta = mergedOptions.nuxtPageMeta;
|
|
905
906
|
if (mergedOptions?.customElements !== void 0) options.customElements = mergedOptions.customElements;
|
|
906
907
|
if (mergedOptions?.mode !== void 0) options.mode = mergedOptions.mode;
|
|
907
908
|
if (mergedOptions?.runtimeModuleName !== void 0) options.runtimeModuleName = mergedOptions.runtimeModuleName;
|
|
@@ -1044,6 +1045,7 @@ function buildCompileFileOptions(filePath, options) {
|
|
|
1044
1045
|
sourceMap: options.sourceMap,
|
|
1045
1046
|
ssr: options.ssr,
|
|
1046
1047
|
vapor: options.vapor,
|
|
1048
|
+
...options.nuxtPageMeta === void 0 ? {} : { nuxtPageMeta: options.nuxtPageMeta },
|
|
1047
1049
|
...options.whitespace === void 0 ? {} : { whitespace: options.whitespace },
|
|
1048
1050
|
customRenderer: options.customRenderer ?? false,
|
|
1049
1051
|
...options.customElements === void 0 ? {} : { customElements: options.customElements },
|
|
@@ -1071,6 +1073,7 @@ function buildCompileBatchOptions(options) {
|
|
|
1071
1073
|
return {
|
|
1072
1074
|
ssr: options.ssr,
|
|
1073
1075
|
vapor: options.vapor,
|
|
1076
|
+
...options.nuxtPageMeta === void 0 ? {} : { nuxtPageMeta: options.nuxtPageMeta },
|
|
1074
1077
|
...options.whitespace === void 0 ? {} : { whitespace: options.whitespace },
|
|
1075
1078
|
customRenderer: options.customRenderer ?? false,
|
|
1076
1079
|
...options.customElements === void 0 ? {} : { customElements: options.customElements },
|
|
@@ -109,6 +109,10 @@ function relocateTaskConfig(config, root) {
|
|
|
109
109
|
return {
|
|
110
110
|
...config,
|
|
111
111
|
basePath: path.resolve(root, config.basePath ?? ""),
|
|
112
|
+
typeChecker: config.typeChecker ? {
|
|
113
|
+
...config.typeChecker,
|
|
114
|
+
tsconfig: config.typeChecker.tsconfig === void 0 ? void 0 : path.resolve(root, config.typeChecker.tsconfig)
|
|
115
|
+
} : void 0,
|
|
112
116
|
ignores: config.ignores?.map(absolutePattern),
|
|
113
117
|
entries: (config.entries ?? []).map((entry) => ({
|
|
114
118
|
...entry,
|
|
@@ -1182,6 +1182,8 @@ interface VizeOptions extends ExperimentalPluginOptions {
|
|
|
1182
1182
|
* @default false
|
|
1183
1183
|
*/
|
|
1184
1184
|
vapor?: boolean;
|
|
1185
|
+
/** Extract Nuxt page metadata; the Nuxt integration enables this explicitly. */
|
|
1186
|
+
nuxtPageMeta?: boolean;
|
|
1185
1187
|
/**
|
|
1186
1188
|
* Default output mode for `.jsx`/`.tsx` components without a `"use vue:*"`
|
|
1187
1189
|
* directive. Distinct from `vapor` (which targets `.vue` SFCs): a project can
|
package/dist/vite-plus.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as LinterConfig, g as FormatterConfig, h as CompilerConfig, m as UserConfigExport, p as UserConfig$1, t as VizeOptions, v as TypeCheckerConfig } from "./types-
|
|
1
|
+
import { _ as LinterConfig, g as FormatterConfig, h as CompilerConfig, m as UserConfigExport, p as UserConfig$1, t as VizeOptions, v as TypeCheckerConfig } from "./types-D7IFtAEo.mjs";
|
|
2
2
|
import { ConfigEnv, UserConfig, defineConfig as defineConfig$1 } from "vite-plus";
|
|
3
3
|
|
|
4
4
|
//#region src/vite-plus/types.d.ts
|
package/dist/vite-plus.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as resolveConfigExport, r as loadConfig } from "./config-PP6EAmWc.mjs";
|
|
2
2
|
import { t as mergeSharedConfig } from "./shared-config-dMxrrTkb.mjs";
|
|
3
|
-
import { a as sourceConfigKey, i as resolveVitePlus, o as taskConfigKey, r as availableVueRules, t as runNative } from "./runner-
|
|
3
|
+
import { a as sourceConfigKey, i as resolveVitePlus, o as taskConfigKey, r as availableVueRules, t as runNative } from "./runner-BewZHurL.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { readFileSync } from "node:fs";
|
|
@@ -326,7 +326,7 @@ function defineConfig(config = {}, integration = {}) {
|
|
|
326
326
|
const { options } = metadata;
|
|
327
327
|
const plugins = compiler === false ? [...vp.plugins ?? []] : await withoutVueCompiler(vp.plugins ?? []);
|
|
328
328
|
if (compiler !== false) {
|
|
329
|
-
const { vize } = await import("./plugin-
|
|
329
|
+
const { vize } = await import("./plugin-_ejkFWKG.mjs");
|
|
330
330
|
plugins.push(vize({
|
|
331
331
|
...compiler,
|
|
332
332
|
configMode: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/vite-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.433.0",
|
|
4
4
|
"description": "High-performance native Vite plugin for Vue SFC compilation powered by Vize",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compiler",
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@vizejs/native": "0.
|
|
55
|
-
"@vizejs/unplugin": "0.
|
|
54
|
+
"@vizejs/native": "0.433.0",
|
|
55
|
+
"@vizejs/unplugin": "0.433.0",
|
|
56
56
|
"jsonc-parser": "^3.3.1",
|
|
57
57
|
"oxc-parser": "0.144.0",
|
|
58
58
|
"picomatch": "4.0.5",
|
|
59
59
|
"tinyglobby": "0.2.17",
|
|
60
|
-
"vize": "0.
|
|
60
|
+
"vize": "0.433.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "25.9.2",
|
package/dist/plugin-9jvcWEU8.mjs
DELETED