@vizejs/vite-plugin 0.691.0 → 0.692.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-cSFUkcfU.mjs";
1
+ import { t as vize } from "./plugin-CFcqJ44_.mjs";
2
2
  import { u as rewriteStaticAssetUrls } from "./vue-version-B0qUneRk.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-LlMZcDZI.mjs";
4
4
  //#region src/index.ts
@@ -0,0 +1,2 @@
1
+ import { t as vize } from "./plugin-CFcqJ44_.mjs";
2
+ export { vize };
@@ -1268,7 +1268,7 @@ async function resolveSfcSrcRequests(importer, requests, resolve) {
1268
1268
  return resolutions;
1269
1269
  }
1270
1270
  const SRC_BLOCK_HINT = /<(?:template|script|style)\b[^>]*\ssrc\s*=/i;
1271
- const ATTRIBUTE_RE = /\s+([^\s"'<>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/gy;
1271
+ const ATTRIBUTE_RE = /\s*([^\s"'<>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/gy;
1272
1272
  /** Split an opening tag into its `src` value and the tag without it. */
1273
1273
  function splitSrcAttribute(tag, openTag) {
1274
1274
  const head = `<${tag}`;
@@ -1284,9 +1284,10 @@ function splitSrcAttribute(tag, openTag) {
1284
1284
  else rest += match[0];
1285
1285
  }
1286
1286
  if (src === null || consumed !== body.length) return null;
1287
+ const attributes = rest && !/^\s/u.test(rest) ? ` ${rest}` : rest;
1287
1288
  return {
1288
1289
  src,
1289
- openTag: `${head}${rest}>`
1290
+ openTag: `${head}${attributes}>`
1290
1291
  };
1291
1292
  }
1292
1293
  function needsContents(kind, block) {
@@ -400,7 +400,7 @@ function defineConfig(config = {}, integration = {}) {
400
400
  const legacy = compiler !== false && (await import("./vue-version-DL5NF2G-.mjs")).isLegacyVueCompatibilityMode(compiler);
401
401
  const plugins = compiler === false || legacy ? [...vp.plugins ?? []] : await withoutVueCompiler(vp.plugins ?? []);
402
402
  if (compiler !== false) {
403
- const { vize } = await import("./plugin-Dk8r3C7V.mjs");
403
+ const { vize } = await import("./plugin-BCJ-usXt.mjs");
404
404
  plugins.push(vize({
405
405
  ...plugin,
406
406
  configMode: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/vite-plugin",
3
- "version": "0.691.0",
3
+ "version": "0.692.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.691.0",
55
- "@vizejs/unplugin": "0.691.0",
54
+ "@vizejs/native": "0.692.0",
55
+ "@vizejs/unplugin": "0.692.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.691.0"
60
+ "vize": "0.692.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/node": "25.9.2",
@@ -91,7 +91,7 @@
91
91
  "check:fix": "vp check --fix src vite.config.ts",
92
92
  "fmt": "vp fmt --write src vite.config.ts",
93
93
  "test": "node scripts/run-tests.mjs",
94
- "test:prepared": "node scripts/run-tests.mjs --require-prepared && node src/test.ts && node --test src/vite-plus/*.test.ts",
94
+ "test:prepared": "node scripts/run-tests.mjs --require-prepared && node --test --test-concurrency=1 \"src/**/*.test.ts\"",
95
95
  "test:types:markdown": "vp exec tsc -p type-tests/markdown/tsconfig.json",
96
96
  "test:types:real-vite": "vp exec node type-tests/plugin-vue/check.ts"
97
97
  }
@@ -1,2 +0,0 @@
1
- import { t as vize } from "./plugin-cSFUkcfU.mjs";
2
- export { vize };