@vizejs/unplugin 0.347.7 → 0.350.2

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 CHANGED
@@ -1,4 +1,4 @@
1
- const require_unplugin = require("./unplugin-luChiLRk.cjs");
1
+ const require_unplugin = require("./unplugin-hStYH29E.cjs");
2
2
  //#region src/babel.ts
3
3
  function vizeBabelPlugin(_api, rawOptions = {}) {
4
4
  const options = require_unplugin.normalizeOptions(rawOptions);
package/dist/babel.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.cjs";
2
2
 
3
3
  //#region src/babel.d.ts
4
4
  type BabelParserOptions = Record<string, unknown> & {
package/dist/babel.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.mjs";
2
2
 
3
3
  //#region src/babel.d.ts
4
4
  type BabelParserOptions = Record<string, unknown> & {
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-kbsO51gY.mjs";
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
@@ -1,4 +1,4 @@
1
1
  //#region src/esbuild.ts
2
- var esbuild_default = require("./unplugin-luChiLRk.cjs").vizeUnplugin.esbuild;
2
+ var esbuild_default = require("./unplugin-hStYH29E.cjs").vizeUnplugin.esbuild;
3
3
  //#endregion
4
4
  module.exports = esbuild_default;
@@ -1,6 +1,5 @@
1
- import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.cjs";
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) => _$unplugin.EsbuildPlugin;
4
+ declare const _default: (options?: VizeUnpluginOptions | undefined) => import("unplugin").EsbuildPlugin;
6
5
  export = _default;
@@ -1,7 +1,6 @@
1
- import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.mjs";
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) => _$unplugin.EsbuildPlugin;
4
+ declare const _default: (options?: VizeUnpluginOptions | undefined) => import("unplugin").EsbuildPlugin;
6
5
  //#endregion
7
6
  export { _default as default };
package/dist/esbuild.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as vizeUnplugin } from "./unplugin-kbsO51gY.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-t9rNMB4Y.mjs";
2
2
  //#region src/esbuild.ts
3
3
  var esbuild_default = vizeUnplugin.esbuild;
4
4
  //#endregion
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-luChiLRk.cjs");
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-DJc3xW5w.cjs";
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: _$unplugin.UnpluginInstance<VizeUnpluginOptions | undefined, boolean>;
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-BxXHKtjz.mjs";
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: _$unplugin.UnpluginInstance<VizeUnpluginOptions | undefined, boolean>;
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-kbsO51gY.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-t9rNMB4Y.mjs";
2
2
  export { vizeUnplugin as default, vizeUnplugin };
package/dist/rolldown.cjs CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region src/rolldown.ts
2
- var rolldown_default = require("./unplugin-luChiLRk.cjs").vizeUnplugin.rollup;
2
+ var rolldown_default = require("./unplugin-hStYH29E.cjs").vizeUnplugin.rollup;
3
3
  //#endregion
4
4
  module.exports = rolldown_default;
@@ -1,6 +1,5 @@
1
- import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.cjs";
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) => _$unplugin.RollupPlugin<any> | _$unplugin.RollupPlugin<any>[];
4
+ declare const _default: (options?: VizeUnpluginOptions | undefined) => import("unplugin").RollupPlugin<any> | import("unplugin").RollupPlugin<any>[];
6
5
  export = _default;
@@ -1,7 +1,6 @@
1
- import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.mjs";
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) => _$unplugin.RollupPlugin<any> | _$unplugin.RollupPlugin<any>[];
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
@@ -1,4 +1,4 @@
1
- import { n as vizeUnplugin } from "./unplugin-kbsO51gY.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-t9rNMB4Y.mjs";
2
2
  //#region src/rolldown.ts
3
3
  var rolldown_default = vizeUnplugin.rollup;
4
4
  //#endregion
package/dist/rollup.cjs CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region src/rollup.ts
2
- var rollup_default = require("./unplugin-luChiLRk.cjs").vizeUnplugin.rollup;
2
+ var rollup_default = require("./unplugin-hStYH29E.cjs").vizeUnplugin.rollup;
3
3
  //#endregion
4
4
  module.exports = rollup_default;
package/dist/rollup.d.cts CHANGED
@@ -1,6 +1,5 @@
1
- import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.cjs";
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) => _$unplugin.RollupPlugin<any> | _$unplugin.RollupPlugin<any>[];
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-BxXHKtjz.mjs";
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) => _$unplugin.RollupPlugin<any> | _$unplugin.RollupPlugin<any>[];
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
@@ -1,4 +1,4 @@
1
- import { n as vizeUnplugin } from "./unplugin-kbsO51gY.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-t9rNMB4Y.mjs";
2
2
  //#region src/rollup.ts
3
3
  var rollup_default = vizeUnplugin.rollup;
4
4
  //#endregion
@@ -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",
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.cjs";
2
2
  import { Compiler } from "webpack";
3
3
 
4
4
  //#region src/webpack-cjs.d.ts
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DsKSQdDW.mjs";
2
2
  import { Compiler } from "webpack";
3
3
 
4
4
  //#region src/webpack-cjs.d.ts
package/dist/webpack.cjs CHANGED
@@ -1,4 +1,4 @@
1
1
  //#region src/webpack.ts
2
- var webpack_default = require("./unplugin-luChiLRk.cjs").vizeUnplugin.webpack;
2
+ var webpack_default = require("./unplugin-hStYH29E.cjs").vizeUnplugin.webpack;
3
3
  //#endregion
4
4
  module.exports = webpack_default;
@@ -1,6 +1,5 @@
1
- import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.cjs";
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) => _$webpack.WebpackPluginInstance;
4
+ declare const _default: (options?: VizeUnpluginOptions | undefined) => import("webpack").WebpackPluginInstance;
6
5
  export = _default;
@@ -1,7 +1,6 @@
1
- import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.mjs";
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) => _$webpack.WebpackPluginInstance;
4
+ declare const _default: (options?: VizeUnpluginOptions | undefined) => import("webpack").WebpackPluginInstance;
6
5
  //#endregion
7
6
  export { _default as default };
package/dist/webpack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as vizeUnplugin } from "./unplugin-kbsO51gY.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-t9rNMB4Y.mjs";
2
2
  //#region src/webpack.ts
3
3
  var webpack_default = vizeUnplugin.webpack;
4
4
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizejs/unplugin",
3
- "version": "0.347.7",
3
+ "version": "0.350.2",
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.347.7",
72
- "oxc-transform": "0.130.0",
73
- "unplugin": "3.0.0"
71
+ "@vizejs/native": "0.350.2",
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.61.1",
78
+ "rollup": "4.62.4",
79
79
  "typescript": "6.0.3",
80
- "vite-plus": "0.1.21",
80
+ "vite-plus": "0.1.24",
81
81
  "vue": "3.6.0-beta.10",
82
- "webpack": "5.107.2"
82
+ "webpack": "5.109.2"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "webpack": "^4.46.0 || ^5.0.0"