@vizejs/unplugin 0.59.0 → 0.60.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/README.md +3 -1
- package/dist/esbuild.d.mts +1 -1
- package/dist/esbuild.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/rollup.d.mts +1 -1
- package/dist/rollup.mjs +1 -1
- package/dist/{types-B9p6RbVJ.d.mts → types-o6z7QlYN.d.mts} +1 -0
- package/dist/{unplugin-DdRfNL4n.mjs → unplugin-8tCaeF-H.mjs} +3 -0
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,8 +16,10 @@ Rspack intentionally uses the dedicated `@vizejs/rspack-plugin` path instead of
|
|
|
16
16
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
|
+
Install `vp` once from the [Vite+ install guide](https://viteplus.dev/guide/install), then add the package:
|
|
20
|
+
|
|
19
21
|
```bash
|
|
20
|
-
|
|
22
|
+
vp install @vizejs/unplugin
|
|
21
23
|
```
|
|
22
24
|
|
|
23
25
|
## Usage
|
package/dist/esbuild.d.mts
CHANGED
package/dist/esbuild.mjs
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as vizeUnplugin } from "./unplugin-
|
|
1
|
+
import { t as vizeUnplugin } from "./unplugin-8tCaeF-H.mjs";
|
|
2
2
|
export { vizeUnplugin as default, vizeUnplugin };
|
package/dist/rollup.d.mts
CHANGED
package/dist/rollup.mjs
CHANGED
|
@@ -154,6 +154,7 @@ function buildSignature(options) {
|
|
|
154
154
|
options.isProduction ? "1" : "0",
|
|
155
155
|
options.ssr ? "1" : "0",
|
|
156
156
|
options.vapor ? "1" : "0",
|
|
157
|
+
options.customRenderer ? "1" : "0",
|
|
157
158
|
options.sourceMap ? "1" : "0",
|
|
158
159
|
options.root
|
|
159
160
|
].join(":");
|
|
@@ -176,6 +177,7 @@ function compileVueModule(filePath, source, options, cache) {
|
|
|
176
177
|
sourceMap: options.sourceMap,
|
|
177
178
|
ssr: options.ssr,
|
|
178
179
|
vapor: options.vapor,
|
|
180
|
+
customRenderer: options.customRenderer,
|
|
179
181
|
scopeId: hasScoped ? `data-v-${scopeId}` : void 0
|
|
180
182
|
});
|
|
181
183
|
if (result.errors.length > 0) throw new Error(result.errors.join("\n"));
|
|
@@ -278,6 +280,7 @@ function normalizeOptions(rawOptions = {}) {
|
|
|
278
280
|
ssr: rawOptions.ssr ?? false,
|
|
279
281
|
sourceMap: rawOptions.sourceMap ?? !isProduction,
|
|
280
282
|
vapor: rawOptions.vapor ?? false,
|
|
283
|
+
customRenderer: rawOptions.customRenderer ?? false,
|
|
281
284
|
root: rawOptions.root ?? process.cwd(),
|
|
282
285
|
debug: rawOptions.debug ?? false
|
|
283
286
|
};
|
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.60.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.60.0",
|
|
55
55
|
"oxc-transform": "0.56.5",
|
|
56
56
|
"unplugin": "3.0.0"
|
|
57
57
|
},
|