@vizejs/unplugin 0.347.7 → 0.351.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.d.cts +1 -1
- package/dist/babel.d.mts +1 -1
- package/dist/babel.mjs +1 -1
- package/dist/esbuild.cjs +1 -1
- package/dist/esbuild.d.cts +2 -3
- package/dist/esbuild.d.mts +2 -3
- package/dist/esbuild.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +1 -1
- package/dist/rolldown.cjs +1 -1
- package/dist/rolldown.d.cts +2 -3
- package/dist/rolldown.d.mts +2 -3
- package/dist/rolldown.mjs +1 -1
- package/dist/rollup.cjs +1 -1
- package/dist/rollup.d.cts +2 -3
- package/dist/rollup.d.mts +2 -3
- package/dist/rollup.mjs +1 -1
- package/dist/{types-BxXHKtjz.d.mts → types-DsKSQdDW.d.cts} +1 -0
- package/dist/{types-DJc3xW5w.d.cts → types-DsKSQdDW.d.mts} +1 -0
- package/dist/{unplugin-luChiLRk.cjs → unplugin-hStYH29E.cjs} +3 -0
- package/dist/{unplugin-kbsO51gY.mjs → unplugin-t9rNMB4Y.mjs} +3 -0
- package/dist/webpack-cjs.d.cts +1 -1
- package/dist/webpack-cjs.d.mts +1 -1
- package/dist/webpack.cjs +1 -1
- package/dist/webpack.d.cts +2 -3
- package/dist/webpack.d.mts +2 -3
- package/dist/webpack.mjs +1 -1
- package/package.json +7 -7
package/dist/babel.cjs
CHANGED
package/dist/babel.d.cts
CHANGED
package/dist/babel.d.mts
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-t9rNMB4Y.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.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { r as VizeUnpluginOptions } from "./types-
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
1
|
+
import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.cjs";
|
|
3
2
|
|
|
4
3
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options?: VizeUnpluginOptions | undefined) =>
|
|
4
|
+
declare const _default: (options?: VizeUnpluginOptions | undefined) => import("unplugin").EsbuildPlugin;
|
|
6
5
|
export = _default;
|
package/dist/esbuild.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as VizeUnpluginOptions } from "./types-
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
1
|
+
import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/esbuild.d.ts
|
|
5
|
-
declare const _default: (options?: VizeUnpluginOptions | undefined) =>
|
|
4
|
+
declare const _default: (options?: VizeUnpluginOptions | undefined) => import("unplugin").EsbuildPlugin;
|
|
6
5
|
//#endregion
|
|
7
6
|
export { _default as default };
|
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-hStYH29E.cjs");
|
|
6
6
|
exports.default = require_unplugin.vizeUnplugin;
|
|
7
7
|
exports.vizeUnplugin = require_unplugin.vizeUnplugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { i as VizeVueVersion, n as VizeCompatibilityOptions, r as VizeUnpluginOptions, t as MacroArtifact } from "./types-
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
1
|
+
import { i as VizeVueVersion, n as VizeCompatibilityOptions, r as VizeUnpluginOptions, t as MacroArtifact } from "./types-DsKSQdDW.cjs";
|
|
3
2
|
import { Compiler } from "webpack";
|
|
4
3
|
|
|
5
4
|
//#region src/unplugin.d.ts
|
|
6
|
-
declare const vizeUnplugin:
|
|
5
|
+
declare const vizeUnplugin: import("unplugin").UnpluginInstance<VizeUnpluginOptions | undefined, boolean>;
|
|
7
6
|
//#endregion
|
|
8
7
|
export { type MacroArtifact, type VizeCompatibilityOptions, type VizeUnpluginOptions, type VizeVueVersion, vizeUnplugin as default, vizeUnplugin };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { i as VizeVueVersion, n as VizeCompatibilityOptions, r as VizeUnpluginOptions, t as MacroArtifact } from "./types-
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
1
|
+
import { i as VizeVueVersion, n as VizeCompatibilityOptions, r as VizeUnpluginOptions, t as MacroArtifact } from "./types-DsKSQdDW.mjs";
|
|
3
2
|
import { Compiler } from "webpack";
|
|
4
3
|
|
|
5
4
|
//#region src/unplugin.d.ts
|
|
6
|
-
declare const vizeUnplugin:
|
|
5
|
+
declare const vizeUnplugin: import("unplugin").UnpluginInstance<VizeUnpluginOptions | undefined, boolean>;
|
|
7
6
|
//#endregion
|
|
8
7
|
export { type MacroArtifact, type VizeCompatibilityOptions, type VizeUnpluginOptions, type VizeVueVersion, vizeUnplugin as default, vizeUnplugin };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as vizeUnplugin } from "./unplugin-
|
|
1
|
+
import { n as vizeUnplugin } from "./unplugin-t9rNMB4Y.mjs";
|
|
2
2
|
export { vizeUnplugin as default, vizeUnplugin };
|
package/dist/rolldown.cjs
CHANGED
package/dist/rolldown.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { r as VizeUnpluginOptions } from "./types-
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
1
|
+
import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.cjs";
|
|
3
2
|
|
|
4
3
|
//#region src/rolldown.d.ts
|
|
5
|
-
declare const _default: (options?: VizeUnpluginOptions | undefined) =>
|
|
4
|
+
declare const _default: (options?: VizeUnpluginOptions | undefined) => import("unplugin").RollupPlugin<any> | import("unplugin").RollupPlugin<any>[];
|
|
6
5
|
export = _default;
|
package/dist/rolldown.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as VizeUnpluginOptions } from "./types-
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
1
|
+
import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/rolldown.d.ts
|
|
5
|
-
declare const _default: (options?: VizeUnpluginOptions | undefined) =>
|
|
4
|
+
declare const _default: (options?: VizeUnpluginOptions | undefined) => import("unplugin").RollupPlugin<any> | import("unplugin").RollupPlugin<any>[];
|
|
6
5
|
//#endregion
|
|
7
6
|
export { _default as default };
|
package/dist/rolldown.mjs
CHANGED
package/dist/rollup.cjs
CHANGED
package/dist/rollup.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { r as VizeUnpluginOptions } from "./types-
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
1
|
+
import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.cjs";
|
|
3
2
|
|
|
4
3
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options?: VizeUnpluginOptions | undefined) =>
|
|
4
|
+
declare const _default: (options?: VizeUnpluginOptions | undefined) => import("unplugin").RollupPlugin<any> | import("unplugin").RollupPlugin<any>[];
|
|
6
5
|
export = _default;
|
package/dist/rollup.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as VizeUnpluginOptions } from "./types-
|
|
2
|
-
import * as _$unplugin from "unplugin";
|
|
1
|
+
import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/rollup.d.ts
|
|
5
|
-
declare const _default: (options?: VizeUnpluginOptions | undefined) =>
|
|
4
|
+
declare const _default: (options?: VizeUnpluginOptions | undefined) => import("unplugin").RollupPlugin<any> | import("unplugin").RollupPlugin<any>[];
|
|
6
5
|
//#endregion
|
|
7
6
|
export { _default as default };
|
package/dist/rollup.mjs
CHANGED
|
@@ -30,6 +30,7 @@ interface VizeUnpluginOptions {
|
|
|
30
30
|
/** JSX semantics; `"babel"` opts into @vue/babel-plugin-jsx compatibility. */
|
|
31
31
|
jsxCompat?: "native" | "babel";
|
|
32
32
|
customRenderer?: boolean;
|
|
33
|
+
customElements?: string[];
|
|
33
34
|
templateSyntax?: VizeTemplateSyntax;
|
|
34
35
|
runtimeModuleName?: string;
|
|
35
36
|
runtimeGlobalName?: string;
|
|
@@ -30,6 +30,7 @@ interface VizeUnpluginOptions {
|
|
|
30
30
|
/** JSX semantics; `"babel"` opts into @vue/babel-plugin-jsx compatibility. */
|
|
31
31
|
jsxCompat?: "native" | "babel";
|
|
32
32
|
customRenderer?: boolean;
|
|
33
|
+
customElements?: string[];
|
|
33
34
|
templateSyntax?: VizeTemplateSyntax;
|
|
34
35
|
runtimeModuleName?: string;
|
|
35
36
|
runtimeGlobalName?: string;
|
|
@@ -170,6 +170,7 @@ function buildSignature(options) {
|
|
|
170
170
|
options.ssr ? "1" : "0",
|
|
171
171
|
options.vapor ? "1" : "0",
|
|
172
172
|
options.customRenderer ? "1" : "0",
|
|
173
|
+
JSON.stringify(options.customElements ?? []),
|
|
173
174
|
options.templateSyntax,
|
|
174
175
|
options.experimentalInTagComments ? "1" : "0",
|
|
175
176
|
options.experimentalPatternedTemplate ? "1" : "0",
|
|
@@ -202,6 +203,7 @@ function compileVueModule(filePath, source, options, cache) {
|
|
|
202
203
|
ssr: options.ssr,
|
|
203
204
|
vapor: options.vapor,
|
|
204
205
|
customRenderer: options.customRenderer,
|
|
206
|
+
customElements: options.customElements,
|
|
205
207
|
templateSyntax: options.templateSyntax,
|
|
206
208
|
experimentalInTagComments: options.experimentalInTagComments,
|
|
207
209
|
experimentalPatternedTemplate: options.experimentalPatternedTemplate,
|
|
@@ -364,6 +366,7 @@ function normalizeOptions(rawOptions = {}) {
|
|
|
364
366
|
jsxMode: rawOptions.jsxMode,
|
|
365
367
|
jsxCompat: rawOptions.jsxCompat,
|
|
366
368
|
customRenderer: rawOptions.customRenderer ?? false,
|
|
369
|
+
customElements: rawOptions.customElements,
|
|
367
370
|
templateSyntax,
|
|
368
371
|
runtimeModuleName: rawOptions.runtimeModuleName ?? "vue",
|
|
369
372
|
runtimeGlobalName: rawOptions.runtimeGlobalName ?? "Vue",
|
|
@@ -147,6 +147,7 @@ function buildSignature(options) {
|
|
|
147
147
|
options.ssr ? "1" : "0",
|
|
148
148
|
options.vapor ? "1" : "0",
|
|
149
149
|
options.customRenderer ? "1" : "0",
|
|
150
|
+
JSON.stringify(options.customElements ?? []),
|
|
150
151
|
options.templateSyntax,
|
|
151
152
|
options.experimentalInTagComments ? "1" : "0",
|
|
152
153
|
options.experimentalPatternedTemplate ? "1" : "0",
|
|
@@ -179,6 +180,7 @@ function compileVueModule(filePath, source, options, cache) {
|
|
|
179
180
|
ssr: options.ssr,
|
|
180
181
|
vapor: options.vapor,
|
|
181
182
|
customRenderer: options.customRenderer,
|
|
183
|
+
customElements: options.customElements,
|
|
182
184
|
templateSyntax: options.templateSyntax,
|
|
183
185
|
experimentalInTagComments: options.experimentalInTagComments,
|
|
184
186
|
experimentalPatternedTemplate: options.experimentalPatternedTemplate,
|
|
@@ -341,6 +343,7 @@ function normalizeOptions(rawOptions = {}) {
|
|
|
341
343
|
jsxMode: rawOptions.jsxMode,
|
|
342
344
|
jsxCompat: rawOptions.jsxCompat,
|
|
343
345
|
customRenderer: rawOptions.customRenderer ?? false,
|
|
346
|
+
customElements: rawOptions.customElements,
|
|
344
347
|
templateSyntax,
|
|
345
348
|
runtimeModuleName: rawOptions.runtimeModuleName ?? "vue",
|
|
346
349
|
runtimeGlobalName: rawOptions.runtimeGlobalName ?? "Vue",
|
package/dist/webpack-cjs.d.cts
CHANGED
package/dist/webpack-cjs.d.mts
CHANGED
package/dist/webpack.cjs
CHANGED
package/dist/webpack.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { r as VizeUnpluginOptions } from "./types-
|
|
2
|
-
import * as _$webpack from "webpack";
|
|
1
|
+
import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.cjs";
|
|
3
2
|
|
|
4
3
|
//#region src/webpack.d.ts
|
|
5
|
-
declare const _default: (options?: VizeUnpluginOptions | undefined) =>
|
|
4
|
+
declare const _default: (options?: VizeUnpluginOptions | undefined) => import("webpack").WebpackPluginInstance;
|
|
6
5
|
export = _default;
|
package/dist/webpack.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { r as VizeUnpluginOptions } from "./types-
|
|
2
|
-
import * as _$webpack from "webpack";
|
|
1
|
+
import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/webpack.d.ts
|
|
5
|
-
declare const _default: (options?: VizeUnpluginOptions | undefined) =>
|
|
4
|
+
declare const _default: (options?: VizeUnpluginOptions | undefined) => import("webpack").WebpackPluginInstance;
|
|
6
5
|
//#endregion
|
|
7
6
|
export { _default as default };
|
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.351.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,18 +68,18 @@
|
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@vizejs/native": "0.
|
|
72
|
-
"oxc-transform": "0.
|
|
73
|
-
"unplugin": "3.
|
|
71
|
+
"@vizejs/native": "0.351.0",
|
|
72
|
+
"oxc-transform": "0.144.0",
|
|
73
|
+
"unplugin": "3.3.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/node": "25.9.2",
|
|
77
77
|
"esbuild": "0.28.1",
|
|
78
|
-
"rollup": "4.
|
|
78
|
+
"rollup": "4.62.4",
|
|
79
79
|
"typescript": "6.0.3",
|
|
80
|
-
"vite-plus": "0.1.
|
|
80
|
+
"vite-plus": "0.1.24",
|
|
81
81
|
"vue": "3.6.0-beta.10",
|
|
82
|
-
"webpack": "5.
|
|
82
|
+
"webpack": "5.109.2"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"webpack": "^4.46.0 || ^5.0.0"
|