@vizejs/vite-plugin 0.567.0 → 0.569.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/{config-DAxYCBRV.mjs → config-BDc_LWag.mjs} +1 -1
- package/dist/index.mjs +2 -2
- package/dist/internal/vite-plus-task.mjs +1 -1
- package/dist/plugin-B0IAnHbd.mjs +2 -0
- package/dist/{plugin-C2yX_REB.mjs → plugin-D3REY9Av.mjs} +1 -1
- package/dist/{runner-MyoCbFsL.mjs → runner-BIysybdg.mjs} +2 -2
- package/dist/vite-plus.mjs +4 -4
- package/package.json +4 -4
- package/dist/plugin-CX6qcLSp.mjs +0 -2
|
@@ -28,7 +28,7 @@ async function resolveSource(value, env, parents = /* @__PURE__ */ new Set()) {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
function rejectLegacyConfig(source) {
|
|
31
|
-
if (Object.hasOwn(source, "extends")) throw new Error("Custom config extends is no longer supported; use defineConfig(vpConfig).withVue(vueConfig)");
|
|
31
|
+
if (Object.hasOwn(source, "extends") && typeof source.extends !== "boolean") throw new Error("Custom config extends is no longer supported; use defineConfig(vpConfig).withVue(vueConfig)");
|
|
32
32
|
if (Object.hasOwn(source, "vize")) throw new Error("vize: configuration is no longer supported; move Vue settings to vue: in vite.config.*");
|
|
33
33
|
for (const key of [
|
|
34
34
|
"lint",
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as vize } from "./plugin-
|
|
1
|
+
import { t as vize } from "./plugin-D3REY9Av.mjs";
|
|
2
2
|
import { u as rewriteStaticAssetUrls } from "./vue-version-BFh0eI6J.mjs";
|
|
3
|
-
import { a as resolveViteConfigExport, i as resolveConfigExport, n as defineConfig, o as vizeConfigStore, r as loadConfig, t as VIZE_CONFIG_FILE_ENV } from "./config-
|
|
3
|
+
import { a as resolveViteConfigExport, i as resolveConfigExport, n as defineConfig, o as vizeConfigStore, r as loadConfig, t as VIZE_CONFIG_FILE_ENV } from "./config-BDc_LWag.mjs";
|
|
4
4
|
//#region src/index.ts
|
|
5
5
|
const __internal = { rewriteStaticAssetUrls };
|
|
6
6
|
var src_default = vize;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as removeHostVueSfcCompilers, c as rewriteDynamicTemplateImports, d as shouldApplyDefineInVirtualModule, i as isLegacyVueVersion, l as rewriteImportMetaGlobBase, o as applyDefineReplacements, r as isLegacyVueCompatibilityMode, s as createLogger, t as createLegacyVueCompatibilityPlugin, u as rewriteStaticAssetUrls } from "./vue-version-BFh0eI6J.mjs";
|
|
2
|
-
import { a as resolveViteConfigExport, i as resolveConfigExport, o as vizeConfigStore, r as loadConfig } from "./config-
|
|
2
|
+
import { a as resolveViteConfigExport, i as resolveConfigExport, o as vizeConfigStore, r as loadConfig } from "./config-BDc_LWag.mjs";
|
|
3
3
|
import { n as registerResolvedVizeConfig, r as unregisterResolvedVizeConfig } from "./config-bridge-Dv6U7_RC.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as native from "@vizejs/native";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveConfigExport, r as loadConfig } from "./config-
|
|
1
|
+
import { i as resolveConfigExport, r as loadConfig } from "./config-BDc_LWag.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { mkdirSync, mkdtempSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -167,7 +167,7 @@ async function runTools(task, args, metadata, vp, native, execute) {
|
|
|
167
167
|
})).filter((file) => file.endsWith(".vue"));
|
|
168
168
|
if (vue.length) await vize("fmt", [formatCheck ? "--check" : "--write", ...vue]);
|
|
169
169
|
}
|
|
170
|
-
const oxfmtPatterns = patterns.filter((pattern) => !pattern.endsWith(".vue"));
|
|
170
|
+
const oxfmtPatterns = options.fmt === false ? patterns : patterns.filter((pattern) => !pattern.endsWith(".vue"));
|
|
171
171
|
if (oxfmtPatterns.length || patterns.length === 0) await run(vp, [
|
|
172
172
|
"fmt",
|
|
173
173
|
formatCheck ? "--check" : "--write",
|
package/dist/vite-plus.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as projectViteConfigSource, i as resolveConfigExport, l as vueConfigOptions, s as mergeVueConfigOptions } from "./config-
|
|
2
|
-
import { a as taskConfigKey, i as sourceConfigKey, r as availableVueRules, t as runNative } from "./runner-
|
|
1
|
+
import { c as projectViteConfigSource, i as resolveConfigExport, l as vueConfigOptions, s as mergeVueConfigOptions } from "./config-BDc_LWag.mjs";
|
|
2
|
+
import { a as taskConfigKey, i as sourceConfigKey, r as availableVueRules, t as runNative } from "./runner-BIysybdg.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import { randomUUID } from "node:crypto";
|
|
@@ -160,7 +160,7 @@ function normalizeConfig(source, integration) {
|
|
|
160
160
|
...integration,
|
|
161
161
|
check: (vue?.typeCheck ?? vue?.typeChecker)?.enabled !== void 0 ? (vue?.typeCheck ?? vue?.typeChecker)?.enabled : typecheck === false ? false : typeof typecheck === "object" ? typecheck.enabled !== false : typecheck ?? integration.check,
|
|
162
162
|
lint: hostLint !== void 0 ? false : vue?.linter?.enabled !== void 0 ? vue.linter.enabled : lintConfig === void 0 ? integration.lint : lintConfig !== false,
|
|
163
|
-
fmt: (vue?.fmt ?? vue?.formatter) !== void 0 ? true : nativeFmt === void 0 ? integration.fmt :
|
|
163
|
+
fmt: nativeFmt === false ? false : (vue?.fmt ?? vue?.formatter) !== void 0 ? true : nativeFmt === void 0 ? integration.fmt : true
|
|
164
164
|
};
|
|
165
165
|
const config = async (env) => await projectViteConfigSource(source, env, configDirectory);
|
|
166
166
|
const metadata = {
|
|
@@ -356,7 +356,7 @@ function defineConfig(config = {}, integration = {}) {
|
|
|
356
356
|
const legacy = compiler !== false && (await import("./vue-version-DOjZaMiI.mjs")).isLegacyVueCompatibilityMode(compiler);
|
|
357
357
|
const plugins = compiler === false || legacy ? [...vp.plugins ?? []] : await withoutVueCompiler(vp.plugins ?? []);
|
|
358
358
|
if (compiler !== false) {
|
|
359
|
-
const { vize } = await import("./plugin-
|
|
359
|
+
const { vize } = await import("./plugin-B0IAnHbd.mjs");
|
|
360
360
|
plugins.push(vize({
|
|
361
361
|
...compiler,
|
|
362
362
|
configMode: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/vite-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.569.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.569.0",
|
|
55
|
+
"@vizejs/unplugin": "0.569.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.569.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "25.9.2",
|
package/dist/plugin-CX6qcLSp.mjs
DELETED