@vizejs/vite-plugin 0.501.0 → 0.502.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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as vize } from "./plugin-BKmij0M5.mjs";
1
+ import { t as vize } from "./plugin-DL9khuxI.mjs";
2
2
  import { u as rewriteStaticAssetUrls } from "./vue-version-JgVRwvCy.mjs";
3
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-DUCQvDoV.mjs";
4
4
  //#region src/index.ts
@@ -4258,7 +4258,7 @@ async function resolveSharedConfig(options, root, env, logger, viteConfig, hostC
4258
4258
  mode: options.configMode ?? "root",
4259
4259
  configFile,
4260
4260
  env,
4261
- viteConfig: false
4261
+ viteConfig: hostContext === "nuxt"
4262
4262
  });
4263
4263
  if (fileConfig) logger.log("Loaded explicitly selected native Vue settings");
4264
4264
  }
@@ -0,0 +1,2 @@
1
+ import { t as vize } from "./plugin-DL9khuxI.mjs";
2
+ export { vize };
@@ -131,7 +131,10 @@ async function resolveConfig(config, env) {
131
131
  }
132
132
  function assertVueConfigSpelling(source) {
133
133
  const legacy = "vize" in source ? "vize" : source.lint && "vize" in source.lint ? "lint.vize" : source.fmt && "vize" in source.fmt ? "fmt.vize" : void 0;
134
- if (legacy) throw new Error(`${legacy}: configuration is no longer supported; move Vue settings to vue: in vite.config.*`);
134
+ if (legacy) {
135
+ if (legacy === "lint.vize") throw new Error("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");
136
+ throw new Error(`${legacy}: configuration is no longer supported; move Vue settings to vue: in vite.config.*`);
137
+ }
135
138
  }
136
139
  function normalizeConfig(source, integration) {
137
140
  assertVueConfigSpelling(source);
@@ -170,8 +173,8 @@ function normalizeConfig(source, integration) {
170
173
  }
171
174
  /** Keep plugin-only fields while native canonical leaves choose their own values. */
172
175
  function vueCompiler(legacy, vue) {
176
+ if (legacy === false) return false;
173
177
  if (vue?.compiler === void 0 && vue?.version === void 0) return legacy;
174
- if (legacy === false && vue.compiler === void 0) return false;
175
178
  const { compatibility, ...native } = vue.compiler ?? {};
176
179
  const { vueVersion: _nativeVersion, ...nativeCompatibility } = compatibility ?? {};
177
180
  const version = vue.version ?? compatibility?.vueVersion;
@@ -183,7 +186,7 @@ function vueCompiler(legacy, vue) {
183
186
  "2.7": "2.7",
184
187
  "3": 3
185
188
  };
186
- const previous = legacy === false ? {} : legacy;
189
+ const previous = legacy;
187
190
  return {
188
191
  ...previous,
189
192
  ...native,
@@ -306,7 +309,7 @@ function defineConfig(config = {}, integration = {}) {
306
309
  const legacy = compiler !== false && (await import("./vue-version-C75M7lgZ.mjs")).isLegacyVueCompatibilityMode(compiler);
307
310
  const plugins = compiler === false || legacy ? [...vp.plugins ?? []] : await withoutVueCompiler(vp.plugins ?? []);
308
311
  if (compiler !== false) {
309
- const { vize } = await import("./plugin-Bo_wkIJL.mjs");
312
+ const { vize } = await import("./plugin-DYGv_qum.mjs");
310
313
  plugins.push(vize({
311
314
  ...compiler,
312
315
  configMode: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/vite-plugin",
3
- "version": "0.501.0",
3
+ "version": "0.502.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.501.0",
55
- "@vizejs/unplugin": "0.501.0",
54
+ "@vizejs/native": "0.502.0",
55
+ "@vizejs/unplugin": "0.502.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.501.0"
60
+ "vize": "0.502.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/node": "25.9.2",
@@ -1,2 +0,0 @@
1
- import { t as vize } from "./plugin-BKmij0M5.mjs";
2
- export { vize };