@vizejs/unplugin 0.73.0 → 0.75.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.
@@ -1,4 +1,4 @@
1
- import { t as VizeUnpluginOptions } from "./types-o6z7QlYN.mjs";
1
+ import { n as VizeUnpluginOptions } from "./types-CMS9JlXQ.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 { t as vizeUnplugin } from "./unplugin-8tCaeF-H.mjs";
1
+ import { t as vizeUnplugin } from "./unplugin-DuyXzGCw.mjs";
2
2
  //#region src/esbuild.ts
3
3
  var esbuild_default = vizeUnplugin.esbuild;
4
4
  //#endregion
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { t as VizeUnpluginOptions } from "./types-o6z7QlYN.mjs";
1
+ import { n as VizeUnpluginOptions, t as MacroArtifact } from "./types-CMS9JlXQ.mjs";
2
2
  import * as _$unplugin from "unplugin";
3
3
 
4
4
  //#region src/unplugin.d.ts
5
5
  declare const vizeUnplugin: _$unplugin.UnpluginInstance<VizeUnpluginOptions | undefined, boolean>;
6
6
  //#endregion
7
- export { type VizeUnpluginOptions, vizeUnplugin as default, vizeUnplugin };
7
+ export { type MacroArtifact, type VizeUnpluginOptions, vizeUnplugin as default, vizeUnplugin };
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as vizeUnplugin } from "./unplugin-8tCaeF-H.mjs";
1
+ import { t as vizeUnplugin } from "./unplugin-DuyXzGCw.mjs";
2
2
  export { vizeUnplugin as default, vizeUnplugin };
package/dist/rollup.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as VizeUnpluginOptions } from "./types-o6z7QlYN.mjs";
1
+ import { n as VizeUnpluginOptions } from "./types-CMS9JlXQ.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 { t as vizeUnplugin } from "./unplugin-8tCaeF-H.mjs";
1
+ import { t as vizeUnplugin } from "./unplugin-DuyXzGCw.mjs";
2
2
  //#region src/rollup.ts
3
3
  var rollup_default = vizeUnplugin.rollup;
4
4
  //#endregion
@@ -1,4 +1,13 @@
1
1
  //#region src/types.d.ts
2
+ interface MacroArtifact {
3
+ kind: string;
4
+ name: string;
5
+ source: string;
6
+ content: string;
7
+ moduleCode?: string;
8
+ start: number;
9
+ end: number;
10
+ }
2
11
  interface VizeUnpluginOptions {
3
12
  include?: string | RegExp | Array<string | RegExp>;
4
13
  exclude?: string | RegExp | Array<string | RegExp>;
@@ -11,4 +20,4 @@ interface VizeUnpluginOptions {
11
20
  debug?: boolean;
12
21
  }
13
22
  //#endregion
14
- export { VizeUnpluginOptions as t };
23
+ export { VizeUnpluginOptions as n, MacroArtifact as t };
@@ -189,6 +189,7 @@ function compileVueModule(filePath, source, options, cache) {
189
189
  templateHash: result.templateHash,
190
190
  styleHash: result.styleHash,
191
191
  scriptHash: result.scriptHash,
192
+ macroArtifacts: result.macroArtifacts ?? [],
192
193
  styles: extractStyleBlocks(source)
193
194
  };
194
195
  cache.set(filePath, {
@@ -1,4 +1,4 @@
1
- import { t as VizeUnpluginOptions } from "./types-o6z7QlYN.mjs";
1
+ import { n as VizeUnpluginOptions } from "./types-CMS9JlXQ.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 { t as vizeUnplugin } from "./unplugin-8tCaeF-H.mjs";
1
+ import { t as vizeUnplugin } from "./unplugin-DuyXzGCw.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.73.0",
3
+ "version": "0.75.0",
4
4
  "description": "Experimental unplugin-based Vue SFC integration for rollup, webpack, and esbuild powered by Vize",
5
5
  "keywords": [
6
6
  "compiler",
@@ -51,7 +51,7 @@
51
51
  "access": "public"
52
52
  },
53
53
  "dependencies": {
54
- "@vizejs/native": "0.73.0",
54
+ "@vizejs/native": "0.75.0",
55
55
  "oxc-transform": "0.56.5",
56
56
  "unplugin": "3.0.0"
57
57
  },