@vizejs/nuxt 0.0.1-alpha.103 → 0.0.1-alpha.105
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/index.d.ts +6 -0
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,12 @@ import { NuxtMuseaOptions, NuxtMuseaOptions as NuxtMuseaOptions$1 } from "@vizej
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
|
|
6
6
|
interface VizeNuxtOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Enable/disable the Vize compiler (Vue SFC compilation via Vite plugin).
|
|
9
|
+
* Set to `false` to use Vue's default SFC compiler instead.
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
compiler?: boolean;
|
|
7
13
|
/**
|
|
8
14
|
* Musea gallery options.
|
|
9
15
|
* Set to `false` to disable musea.
|
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var src_default = defineNuxtModule({
|
|
|
17
17
|
},
|
|
18
18
|
setup(options, nuxt) {
|
|
19
19
|
nuxt.options.vite.plugins = nuxt.options.vite.plugins || [];
|
|
20
|
-
nuxt.options.vite.plugins.push(vize());
|
|
20
|
+
if (options.compiler !== false) nuxt.options.vite.plugins.push(vize());
|
|
21
21
|
if (options.musea !== false) {
|
|
22
22
|
const museaBasePath = options.musea && typeof options.musea === "object" && "basePath" in options.musea ? options.musea.basePath : "/__musea__";
|
|
23
23
|
nuxt.options.vite.plugins.push(...musea(options.musea || {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/nuxt",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.105",
|
|
4
4
|
"description": "Nuxt module for Vize - compiler, musea gallery, linter, and type checker",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@nuxt/kit": "^4.0.0",
|
|
37
|
-
"@vizejs/vite-plugin": "
|
|
38
|
-
"@vizejs/vite-plugin
|
|
39
|
-
"
|
|
40
|
-
"
|
|
37
|
+
"@vizejs/vite-plugin-musea": "0.0.1-alpha.105",
|
|
38
|
+
"@vizejs/vite-plugin": "0.0.1-alpha.105",
|
|
39
|
+
"vize": "0.0.1-alpha.105",
|
|
40
|
+
"@vizejs/musea-nuxt": "0.0.1-alpha.105"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsdown": "^0.9.0",
|