@vizejs/unplugin 0.318.0 → 0.322.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 CHANGED
@@ -1,4 +1,4 @@
1
- const require_unplugin = require("./unplugin-CfGjNjdl.cjs");
1
+ const require_unplugin = require("./unplugin-luChiLRk.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-D3or3aSV.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.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-DmgrThqW.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.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-uLeammid.mjs";
1
+ import { a as createFilter, i as generateOutput, r as compileVueModule, t as normalizeOptions } from "./unplugin-kbsO51gY.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-CfGjNjdl.cjs").vizeUnplugin.esbuild;
2
+ var esbuild_default = require("./unplugin-luChiLRk.cjs").vizeUnplugin.esbuild;
3
3
  //#endregion
4
4
  module.exports = esbuild_default;
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-D3or3aSV.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.cjs";
2
2
  import * as _$unplugin from "unplugin";
3
3
 
4
4
  //#region src/esbuild.d.ts
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-DmgrThqW.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.mjs";
2
2
  import * as _$unplugin from "unplugin";
3
3
 
4
4
  //#region src/esbuild.d.ts
package/dist/esbuild.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as vizeUnplugin } from "./unplugin-uLeammid.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-kbsO51gY.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-CfGjNjdl.cjs");
5
+ const require_unplugin = require("./unplugin-luChiLRk.cjs");
6
6
  exports.default = require_unplugin.vizeUnplugin;
7
7
  exports.vizeUnplugin = require_unplugin.vizeUnplugin;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as VizeVueVersion, n as VizeCompatibilityOptions, r as VizeUnpluginOptions, t as MacroArtifact } from "./types-D3or3aSV.cjs";
1
+ import { i as VizeVueVersion, n as VizeCompatibilityOptions, r as VizeUnpluginOptions, t as MacroArtifact } from "./types-DJc3xW5w.cjs";
2
2
  import * as _$unplugin from "unplugin";
3
3
  import { Compiler } from "webpack";
4
4
 
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as VizeVueVersion, n as VizeCompatibilityOptions, r as VizeUnpluginOptions, t as MacroArtifact } from "./types-DmgrThqW.mjs";
1
+ import { i as VizeVueVersion, n as VizeCompatibilityOptions, r as VizeUnpluginOptions, t as MacroArtifact } from "./types-BxXHKtjz.mjs";
2
2
  import * as _$unplugin from "unplugin";
3
3
  import { Compiler } from "webpack";
4
4
 
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { n as vizeUnplugin } from "./unplugin-uLeammid.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-kbsO51gY.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-CfGjNjdl.cjs").vizeUnplugin.rollup;
2
+ var rolldown_default = require("./unplugin-luChiLRk.cjs").vizeUnplugin.rollup;
3
3
  //#endregion
4
4
  module.exports = rolldown_default;
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-D3or3aSV.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.cjs";
2
2
  import * as _$unplugin from "unplugin";
3
3
 
4
4
  //#region src/rolldown.d.ts
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-DmgrThqW.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.mjs";
2
2
  import * as _$unplugin from "unplugin";
3
3
 
4
4
  //#region src/rolldown.d.ts
package/dist/rolldown.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as vizeUnplugin } from "./unplugin-uLeammid.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-kbsO51gY.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-CfGjNjdl.cjs").vizeUnplugin.rollup;
2
+ var rollup_default = require("./unplugin-luChiLRk.cjs").vizeUnplugin.rollup;
3
3
  //#endregion
4
4
  module.exports = rollup_default;
package/dist/rollup.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-D3or3aSV.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.cjs";
2
2
  import * as _$unplugin from "unplugin";
3
3
 
4
4
  //#region src/rollup.d.ts
package/dist/rollup.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-DmgrThqW.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.mjs";
2
2
  import * as _$unplugin from "unplugin";
3
3
 
4
4
  //#region src/rollup.d.ts
package/dist/rollup.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as vizeUnplugin } from "./unplugin-uLeammid.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-kbsO51gY.mjs";
2
2
  //#region src/rollup.ts
3
3
  var rollup_default = vizeUnplugin.rollup;
4
4
  //#endregion
@@ -27,6 +27,8 @@ interface VizeUnpluginOptions {
27
27
  * @default "vdom"
28
28
  */
29
29
  jsxMode?: "vdom" | "vapor";
30
+ /** JSX semantics; `"babel"` opts into @vue/babel-plugin-jsx compatibility. */
31
+ jsxCompat?: "native" | "babel";
30
32
  customRenderer?: boolean;
31
33
  templateSyntax?: VizeTemplateSyntax;
32
34
  runtimeModuleName?: string;
@@ -27,6 +27,8 @@ interface VizeUnpluginOptions {
27
27
  * @default "vdom"
28
28
  */
29
29
  jsxMode?: "vdom" | "vapor";
30
+ /** JSX semantics; `"babel"` opts into @vue/babel-plugin-jsx compatibility. */
31
+ jsxCompat?: "native" | "babel";
30
32
  customRenderer?: boolean;
31
33
  templateSyntax?: VizeTemplateSyntax;
32
34
  runtimeModuleName?: string;
@@ -215,6 +215,7 @@ function compileJsxModule(filePath, source, options) {
215
215
  filename: filePath,
216
216
  lang: filePath.endsWith(".tsx") ? "tsx" : "jsx",
217
217
  jsxMode: options.jsxMode,
218
+ jsxCompat: options.jsxCompat,
218
219
  vapor: options.vapor,
219
220
  sourceMap: options.sourceMap
220
221
  });
@@ -338,6 +339,7 @@ function normalizeOptions(rawOptions = {}) {
338
339
  experimentalPatternedTemplate: rawOptions.experimentalPatternedTemplate ?? false,
339
340
  experimentalServerScript: rawOptions.experimentalServerScript ?? false,
340
341
  jsxMode: rawOptions.jsxMode,
342
+ jsxCompat: rawOptions.jsxCompat,
341
343
  customRenderer: rawOptions.customRenderer ?? false,
342
344
  templateSyntax,
343
345
  runtimeModuleName: rawOptions.runtimeModuleName ?? "vue",
@@ -238,6 +238,7 @@ function compileJsxModule(filePath, source, options) {
238
238
  filename: filePath,
239
239
  lang: filePath.endsWith(".tsx") ? "tsx" : "jsx",
240
240
  jsxMode: options.jsxMode,
241
+ jsxCompat: options.jsxCompat,
241
242
  vapor: options.vapor,
242
243
  sourceMap: options.sourceMap
243
244
  });
@@ -361,6 +362,7 @@ function normalizeOptions(rawOptions = {}) {
361
362
  experimentalPatternedTemplate: rawOptions.experimentalPatternedTemplate ?? false,
362
363
  experimentalServerScript: rawOptions.experimentalServerScript ?? false,
363
364
  jsxMode: rawOptions.jsxMode,
365
+ jsxCompat: rawOptions.jsxCompat,
364
366
  customRenderer: rawOptions.customRenderer ?? false,
365
367
  templateSyntax,
366
368
  runtimeModuleName: rawOptions.runtimeModuleName ?? "vue",
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-D3or3aSV.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.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-DmgrThqW.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.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-CfGjNjdl.cjs").vizeUnplugin.webpack;
2
+ var webpack_default = require("./unplugin-luChiLRk.cjs").vizeUnplugin.webpack;
3
3
  //#endregion
4
4
  module.exports = webpack_default;
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-D3or3aSV.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DJc3xW5w.cjs";
2
2
  import * as _$webpack from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-DmgrThqW.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-BxXHKtjz.mjs";
2
2
  import * as _$webpack from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
package/dist/webpack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as vizeUnplugin } from "./unplugin-uLeammid.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-kbsO51gY.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.318.0",
3
+ "version": "0.322.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.318.0",
71
+ "@vizejs/native": "0.322.0",
72
72
  "oxc-transform": "0.130.0",
73
73
  "unplugin": "3.0.0"
74
74
  },