@vizejs/vite-plugin 0.536.0 → 0.538.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/README.md CHANGED
@@ -140,9 +140,9 @@ project, including nested packages in a workspace. Explicit plugin options and
140
140
  editor feature switches retain their documented precedence.
141
141
 
142
142
  Dedicated `vize.config.*` files and top-level `vize:` settings are retired. Move
143
- native settings to `vue:` and TypeScript settings to `tsconfig.json`. A stale
144
- dedicated file beside a Vite configuration is ignored; a dedicated-only project
145
- receives a migration error. See the [configuration guide](../../../docs/content/guide/configuration.md).
143
+ native settings to `vue:` and TypeScript settings to `tsconfig.json`. A leftover
144
+ dedicated file beside a Vite configuration is an error, the same migration error
145
+ as a dedicated-only project. See the [configuration guide](../../../docs/content/guide/configuration.md).
146
146
 
147
147
  ### Nuxt
148
148
 
@@ -34,7 +34,7 @@ function rejectLegacyConfig(source) {
34
34
  "lint",
35
35
  "fmt",
36
36
  "pack"
37
- ]) if ((Array.isArray(source[key]) ? source[key] : [source[key]]).some((value) => object(value) && Object.hasOwn(value, "vize"))) throw new Error(`${key}.vize is no longer supported; use ${key}.vue or the shared vue: settings`);
37
+ ]) if ((Array.isArray(source[key]) ? source[key] : [source[key]]).some((value) => object(value) && Object.hasOwn(value, "vize"))) throw new Error(key === "lint" ? "lint.vize is no longer supported; pass { lint: false } as defineConfig's integration options to disable the Vite+ native lint task while keeping CLI lint enabled, and put shared lint settings in vue.linter" : `${key}.vize: configuration is no longer supported; move Vue settings to vue: in vite.config.*`);
38
38
  }
39
39
  const VITE_CONFIG_FILE_NAMES = [
40
40
  "vite.config.ts",
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { t as vize } from "./plugin-Dg5Np_m3.mjs";
1
+ import { t as vize } from "./plugin-C2yX_REB.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-DP-mjJ4U.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-DAxYCBRV.mjs";
4
4
  //#region src/index.ts
5
5
  const __internal = { rewriteStaticAssetUrls };
6
6
  var src_default = vize;
@@ -1,4 +1,4 @@
1
- import { n as runTask } from "../runner-Dt-GKIwc.mjs";
1
+ import { n as runTask } from "../runner-MyoCbFsL.mjs";
2
2
  //#region src/internal/vite-plus-task.ts
3
3
  try {
4
4
  process.exitCode = await runTask(process.argv.slice(2));
@@ -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-DP-mjJ4U.mjs";
2
+ import { a as resolveViteConfigExport, i as resolveConfigExport, o as vizeConfigStore, r as loadConfig } from "./config-DAxYCBRV.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";
@@ -0,0 +1,2 @@
1
+ import { t as vize } from "./plugin-C2yX_REB.mjs";
2
+ export { vize };
@@ -1,4 +1,4 @@
1
- import { i as resolveConfigExport, r as loadConfig } from "./config-DP-mjJ4U.mjs";
1
+ import { i as resolveConfigExport, r as loadConfig } from "./config-DAxYCBRV.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";
@@ -1,5 +1,5 @@
1
- import { c as projectViteConfigSource, i as resolveConfigExport, l as vueConfigOptions, s as mergeVueConfigOptions } from "./config-DP-mjJ4U.mjs";
2
- import { a as taskConfigKey, i as sourceConfigKey, r as availableVueRules, t as runNative } from "./runner-Dt-GKIwc.mjs";
1
+ import { c as projectViteConfigSource, i as resolveConfigExport, l as vueConfigOptions, s as mergeVueConfigOptions } from "./config-DAxYCBRV.mjs";
2
+ import { a as taskConfigKey, i as sourceConfigKey, r as availableVueRules, t as runNative } from "./runner-MyoCbFsL.mjs";
3
3
  import path from "node:path";
4
4
  import { readFileSync } from "node:fs";
5
5
  import { randomUUID } from "node:crypto";
@@ -348,7 +348,7 @@ function defineConfig(config = {}, integration = {}) {
348
348
  const legacy = compiler !== false && (await import("./vue-version-DOjZaMiI.mjs")).isLegacyVueCompatibilityMode(compiler);
349
349
  const plugins = compiler === false || legacy ? [...vp.plugins ?? []] : await withoutVueCompiler(vp.plugins ?? []);
350
350
  if (compiler !== false) {
351
- const { vize } = await import("./plugin-D6Nm2qu0.mjs");
351
+ const { vize } = await import("./plugin-CX6qcLSp.mjs");
352
352
  plugins.push(vize({
353
353
  ...compiler,
354
354
  configMode: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/vite-plugin",
3
- "version": "0.536.0",
3
+ "version": "0.538.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.536.0",
55
- "@vizejs/unplugin": "0.536.0",
54
+ "@vizejs/native": "0.538.0",
55
+ "@vizejs/unplugin": "0.538.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.536.0"
60
+ "vize": "0.538.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/node": "25.9.2",
@@ -1,2 +0,0 @@
1
- import { t as vize } from "./plugin-Dg5Np_m3.mjs";
2
- export { vize };