@vue-solana/nuxt 0.2.4 → 0.2.5
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/module.cjs +5 -0
- package/dist/module.mjs +5 -0
- package/package.json +3 -3
package/dist/module.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
const kit = require('@nuxt/kit');
|
|
4
4
|
|
|
5
5
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
|
+
const VITE_OPTIMIZE_DEPS = ["qrcode", "@solana-mobile/wallet-standard-mobile"];
|
|
6
7
|
const module$1 = kit.defineNuxtModule({
|
|
7
8
|
meta: {
|
|
8
9
|
name: "@vue-solana/nuxt",
|
|
@@ -19,6 +20,10 @@ const module$1 = kit.defineNuxtModule({
|
|
|
19
20
|
...typeof publicConfig.solana === "object" && publicConfig.solana !== null ? publicConfig.solana : {},
|
|
20
21
|
...options
|
|
21
22
|
};
|
|
23
|
+
nuxt.options.vite.optimizeDeps ??= {};
|
|
24
|
+
nuxt.options.vite.optimizeDeps.include = Array.from(
|
|
25
|
+
/* @__PURE__ */ new Set([...nuxt.options.vite.optimizeDeps.include ?? [], ...VITE_OPTIMIZE_DEPS])
|
|
26
|
+
);
|
|
22
27
|
kit.addPlugin({
|
|
23
28
|
src: resolver.resolve("./runtime/plugin"),
|
|
24
29
|
mode: "client"
|
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addPlugin, addImports } from '@nuxt/kit';
|
|
2
2
|
|
|
3
|
+
const VITE_OPTIMIZE_DEPS = ["qrcode", "@solana-mobile/wallet-standard-mobile"];
|
|
3
4
|
const module$1 = defineNuxtModule({
|
|
4
5
|
meta: {
|
|
5
6
|
name: "@vue-solana/nuxt",
|
|
@@ -16,6 +17,10 @@ const module$1 = defineNuxtModule({
|
|
|
16
17
|
...typeof publicConfig.solana === "object" && publicConfig.solana !== null ? publicConfig.solana : {},
|
|
17
18
|
...options
|
|
18
19
|
};
|
|
20
|
+
nuxt.options.vite.optimizeDeps ??= {};
|
|
21
|
+
nuxt.options.vite.optimizeDeps.include = Array.from(
|
|
22
|
+
/* @__PURE__ */ new Set([...nuxt.options.vite.optimizeDeps.include ?? [], ...VITE_OPTIMIZE_DEPS])
|
|
23
|
+
);
|
|
19
24
|
addPlugin({
|
|
20
25
|
src: resolver.resolve("./runtime/plugin"),
|
|
21
26
|
mode: "client"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-solana/nuxt",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Nuxt module for Solana applications.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@vue-solana/core": "0.3.
|
|
42
|
-
"@vue-solana/vue": "0.3.
|
|
41
|
+
"@vue-solana/core": "0.3.1",
|
|
42
|
+
"@vue-solana/vue": "0.3.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@solana/web3-compat": "^0.0.21",
|