@vizejs/unplugin 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/babel.cjs +1 -1
- package/dist/babel.mjs +1 -1
- package/dist/esbuild.cjs +1 -1
- package/dist/esbuild.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/rolldown.cjs +1 -1
- package/dist/rolldown.mjs +1 -1
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.mjs +1 -1
- package/dist/{unplugin-C2D-Vdy1.cjs → unplugin-DKs7THpc.cjs} +3 -2
- package/dist/{unplugin-BjxDYvYs.mjs → unplugin-X9gwrGIh.mjs} +3 -2
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +2 -2
package/dist/babel.cjs
CHANGED
package/dist/babel.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createFilter, i as generateOutput, r as compileVueModule, t as normalizeOptions } from "./unplugin-
|
|
1
|
+
import { a as createFilter, i as generateOutput, r as compileVueModule, t as normalizeOptions } from "./unplugin-X9gwrGIh.mjs";
|
|
2
2
|
//#region src/babel.ts
|
|
3
3
|
function vizeBabelPlugin(_api, rawOptions = {}) {
|
|
4
4
|
const options = normalizeOptions(rawOptions);
|
package/dist/esbuild.cjs
CHANGED
package/dist/esbuild.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2,6 +2,6 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_unplugin = require("./unplugin-
|
|
5
|
+
const require_unplugin = require("./unplugin-DKs7THpc.cjs");
|
|
6
6
|
exports.default = require_unplugin.vizeUnplugin;
|
|
7
7
|
exports.vizeUnplugin = require_unplugin.vizeUnplugin;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as vizeUnplugin } from "./unplugin-
|
|
1
|
+
import { n as vizeUnplugin } from "./unplugin-X9gwrGIh.mjs";
|
|
2
2
|
export { vizeUnplugin as default, vizeUnplugin };
|
package/dist/rolldown.cjs
CHANGED
package/dist/rolldown.mjs
CHANGED
package/dist/rollup.cjs
CHANGED
package/dist/rollup.mjs
CHANGED
|
@@ -324,7 +324,7 @@ async function resolveSfcSrcRequests(importer, requests, resolve) {
|
|
|
324
324
|
return resolutions;
|
|
325
325
|
}
|
|
326
326
|
const SRC_BLOCK_HINT = /<(?:template|script|style)\b[^>]*\ssrc\s*=/i;
|
|
327
|
-
const ATTRIBUTE_RE = /\s
|
|
327
|
+
const ATTRIBUTE_RE = /\s*([^\s"'<>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/gy;
|
|
328
328
|
/** Split an opening tag into its `src` value and the tag without it. */
|
|
329
329
|
function splitSrcAttribute(tag, openTag) {
|
|
330
330
|
const head = `<${tag}`;
|
|
@@ -340,9 +340,10 @@ function splitSrcAttribute(tag, openTag) {
|
|
|
340
340
|
else rest += match[0];
|
|
341
341
|
}
|
|
342
342
|
if (src === null || consumed !== body.length) return null;
|
|
343
|
+
const attributes = rest && !/^\s/u.test(rest) ? ` ${rest}` : rest;
|
|
343
344
|
return {
|
|
344
345
|
src,
|
|
345
|
-
openTag: `${head}${
|
|
346
|
+
openTag: `${head}${attributes}>`
|
|
346
347
|
};
|
|
347
348
|
}
|
|
348
349
|
function needsContents(kind, block) {
|
|
@@ -322,7 +322,7 @@ async function resolveSfcSrcRequests(importer, requests, resolve) {
|
|
|
322
322
|
return resolutions;
|
|
323
323
|
}
|
|
324
324
|
const SRC_BLOCK_HINT = /<(?:template|script|style)\b[^>]*\ssrc\s*=/i;
|
|
325
|
-
const ATTRIBUTE_RE = /\s
|
|
325
|
+
const ATTRIBUTE_RE = /\s*([^\s"'<>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'=<>`]+)))?/gy;
|
|
326
326
|
/** Split an opening tag into its `src` value and the tag without it. */
|
|
327
327
|
function splitSrcAttribute(tag, openTag) {
|
|
328
328
|
const head = `<${tag}`;
|
|
@@ -338,9 +338,10 @@ function splitSrcAttribute(tag, openTag) {
|
|
|
338
338
|
else rest += match[0];
|
|
339
339
|
}
|
|
340
340
|
if (src === null || consumed !== body.length) return null;
|
|
341
|
+
const attributes = rest && !/^\s/u.test(rest) ? ` ${rest}` : rest;
|
|
341
342
|
return {
|
|
342
343
|
src,
|
|
343
|
-
openTag: `${head}${
|
|
344
|
+
openTag: `${head}${attributes}>`
|
|
344
345
|
};
|
|
345
346
|
}
|
|
346
347
|
function needsContents(kind, block) {
|
package/dist/webpack.cjs
CHANGED
package/dist/webpack.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/unplugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.692.0",
|
|
4
4
|
"description": "Experimental Vue SFC integrations for Rollup, Rolldown, Webpack, esbuild, and Babel powered by Vize",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"babel",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@vizejs/native": "0.
|
|
71
|
+
"@vizejs/native": "0.692.0",
|
|
72
72
|
"oxc-transform": "0.144.0",
|
|
73
73
|
"unplugin": "3.3.0"
|
|
74
74
|
},
|