@vizejs/unplugin 0.287.0 → 0.288.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-Dl5dRMQa.cjs");
1
+ const require_unplugin = require("./unplugin-CfGjNjdl.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-BCmaOu8J.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-D3or3aSV.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-DYpiCpa6.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DmgrThqW.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-BFLTEL4o.mjs";
1
+ import { a as createFilter, i as generateOutput, r as compileVueModule, t as normalizeOptions } from "./unplugin-uLeammid.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-Dl5dRMQa.cjs").vizeUnplugin.esbuild;
2
+ var esbuild_default = require("./unplugin-CfGjNjdl.cjs").vizeUnplugin.esbuild;
3
3
  //#endregion
4
4
  module.exports = esbuild_default;
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-BCmaOu8J.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-D3or3aSV.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-DYpiCpa6.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DmgrThqW.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-BFLTEL4o.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-uLeammid.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-Dl5dRMQa.cjs");
5
+ const require_unplugin = require("./unplugin-CfGjNjdl.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-BCmaOu8J.cjs";
1
+ import { i as VizeVueVersion, n as VizeCompatibilityOptions, r as VizeUnpluginOptions, t as MacroArtifact } from "./types-D3or3aSV.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-DYpiCpa6.mjs";
1
+ import { i as VizeVueVersion, n as VizeCompatibilityOptions, r as VizeUnpluginOptions, t as MacroArtifact } from "./types-DmgrThqW.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-BFLTEL4o.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-uLeammid.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-Dl5dRMQa.cjs").vizeUnplugin.rollup;
2
+ var rolldown_default = require("./unplugin-CfGjNjdl.cjs").vizeUnplugin.rollup;
3
3
  //#endregion
4
4
  module.exports = rolldown_default;
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-BCmaOu8J.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-D3or3aSV.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-DYpiCpa6.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DmgrThqW.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-BFLTEL4o.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-uLeammid.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-Dl5dRMQa.cjs").vizeUnplugin.rollup;
2
+ var rollup_default = require("./unplugin-CfGjNjdl.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-BCmaOu8J.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-D3or3aSV.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-DYpiCpa6.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DmgrThqW.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-BFLTEL4o.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-uLeammid.mjs";
2
2
  //#region src/rollup.ts
3
3
  var rollup_default = vizeUnplugin.rollup;
4
4
  //#endregion
@@ -17,6 +17,9 @@ interface VizeUnpluginOptions {
17
17
  sourceMap?: boolean;
18
18
  mode?: "module" | "function";
19
19
  vapor?: boolean;
20
+ experimentalInTagComments?: boolean;
21
+ experimentalPatternedTemplate?: boolean;
22
+ experimentalServerScript?: boolean;
20
23
  /**
21
24
  * Default output mode for `.jsx`/`.tsx` components without a `"use vue:*"`
22
25
  * directive. Distinct from `vapor` (which targets `.vue` SFCs). A
@@ -17,6 +17,9 @@ interface VizeUnpluginOptions {
17
17
  sourceMap?: boolean;
18
18
  mode?: "module" | "function";
19
19
  vapor?: boolean;
20
+ experimentalInTagComments?: boolean;
21
+ experimentalPatternedTemplate?: boolean;
22
+ experimentalServerScript?: boolean;
20
23
  /**
21
24
  * Default output mode for `.jsx`/`.tsx` components without a `"use vue:*"`
22
25
  * directive. Distinct from `vapor` (which targets `.vue` SFCs). A
@@ -171,6 +171,9 @@ function buildSignature(options) {
171
171
  options.vapor ? "1" : "0",
172
172
  options.customRenderer ? "1" : "0",
173
173
  options.templateSyntax,
174
+ options.experimentalInTagComments ? "1" : "0",
175
+ options.experimentalPatternedTemplate ? "1" : "0",
176
+ options.experimentalServerScript ? "1" : "0",
174
177
  options.sourceMap ? "1" : "0",
175
178
  options.mode,
176
179
  options.runtimeModuleName,
@@ -200,6 +203,9 @@ function compileVueModule(filePath, source, options, cache) {
200
203
  vapor: options.vapor,
201
204
  customRenderer: options.customRenderer,
202
205
  templateSyntax: options.templateSyntax,
206
+ experimentalInTagComments: options.experimentalInTagComments,
207
+ experimentalPatternedTemplate: options.experimentalPatternedTemplate,
208
+ experimentalServerScript: options.experimentalServerScript,
203
209
  runtimeModuleName: options.runtimeModuleName,
204
210
  runtimeGlobalName: options.runtimeGlobalName,
205
211
  vueVersion: String(options.vueVersion),
@@ -351,6 +357,9 @@ function normalizeOptions(rawOptions = {}) {
351
357
  sourceMap: rawOptions.sourceMap ?? !isProduction,
352
358
  mode,
353
359
  vapor: rawOptions.vapor ?? false,
360
+ experimentalInTagComments: rawOptions.experimentalInTagComments ?? false,
361
+ experimentalPatternedTemplate: rawOptions.experimentalPatternedTemplate ?? false,
362
+ experimentalServerScript: rawOptions.experimentalServerScript ?? false,
354
363
  jsxMode: rawOptions.jsxMode,
355
364
  customRenderer: rawOptions.customRenderer ?? false,
356
365
  templateSyntax,
@@ -148,6 +148,9 @@ function buildSignature(options) {
148
148
  options.vapor ? "1" : "0",
149
149
  options.customRenderer ? "1" : "0",
150
150
  options.templateSyntax,
151
+ options.experimentalInTagComments ? "1" : "0",
152
+ options.experimentalPatternedTemplate ? "1" : "0",
153
+ options.experimentalServerScript ? "1" : "0",
151
154
  options.sourceMap ? "1" : "0",
152
155
  options.mode,
153
156
  options.runtimeModuleName,
@@ -177,6 +180,9 @@ function compileVueModule(filePath, source, options, cache) {
177
180
  vapor: options.vapor,
178
181
  customRenderer: options.customRenderer,
179
182
  templateSyntax: options.templateSyntax,
183
+ experimentalInTagComments: options.experimentalInTagComments,
184
+ experimentalPatternedTemplate: options.experimentalPatternedTemplate,
185
+ experimentalServerScript: options.experimentalServerScript,
180
186
  runtimeModuleName: options.runtimeModuleName,
181
187
  runtimeGlobalName: options.runtimeGlobalName,
182
188
  vueVersion: String(options.vueVersion),
@@ -328,6 +334,9 @@ function normalizeOptions(rawOptions = {}) {
328
334
  sourceMap: rawOptions.sourceMap ?? !isProduction,
329
335
  mode,
330
336
  vapor: rawOptions.vapor ?? false,
337
+ experimentalInTagComments: rawOptions.experimentalInTagComments ?? false,
338
+ experimentalPatternedTemplate: rawOptions.experimentalPatternedTemplate ?? false,
339
+ experimentalServerScript: rawOptions.experimentalServerScript ?? false,
331
340
  jsxMode: rawOptions.jsxMode,
332
341
  customRenderer: rawOptions.customRenderer ?? false,
333
342
  templateSyntax,
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-BCmaOu8J.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-D3or3aSV.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-DYpiCpa6.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DmgrThqW.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-Dl5dRMQa.cjs").vizeUnplugin.webpack;
2
+ var webpack_default = require("./unplugin-CfGjNjdl.cjs").vizeUnplugin.webpack;
3
3
  //#endregion
4
4
  module.exports = webpack_default;
@@ -1,4 +1,4 @@
1
- import { r as VizeUnpluginOptions } from "./types-BCmaOu8J.cjs";
1
+ import { r as VizeUnpluginOptions } from "./types-D3or3aSV.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-DYpiCpa6.mjs";
1
+ import { r as VizeUnpluginOptions } from "./types-DmgrThqW.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-BFLTEL4o.mjs";
1
+ import { n as vizeUnplugin } from "./unplugin-uLeammid.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.287.0",
3
+ "version": "0.288.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.287.0",
71
+ "@vizejs/native": "0.288.0",
72
72
  "oxc-transform": "0.130.0",
73
73
  "unplugin": "3.0.0"
74
74
  },