@vizejs/unplugin 0.74.0 → 0.76.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/esbuild.d.mts +1 -1
- package/dist/esbuild.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/rollup.d.mts +1 -1
- package/dist/rollup.mjs +1 -1
- package/dist/{types-o6z7QlYN.d.mts → types-CMS9JlXQ.d.mts} +10 -1
- package/dist/{unplugin-8tCaeF-H.mjs → unplugin-DuyXzGCw.mjs} +1 -0
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +2 -2
package/dist/esbuild.d.mts
CHANGED
package/dist/esbuild.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
1
|
+
import { t as vizeUnplugin } from "./unplugin-DuyXzGCw.mjs";
|
|
2
2
|
export { vizeUnplugin as default, vizeUnplugin };
|
package/dist/rollup.d.mts
CHANGED
package/dist/rollup.mjs
CHANGED
|
@@ -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, {
|
package/dist/webpack.d.mts
CHANGED
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.76.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.
|
|
54
|
+
"@vizejs/native": "0.76.0",
|
|
55
55
|
"oxc-transform": "0.56.5",
|
|
56
56
|
"unplugin": "3.0.0"
|
|
57
57
|
},
|