Skip to content

Commit 0c0a1c3

Browse files
vr2ameshjjasonlan
andauthored
Fix issues with react-jsx runtime by editing vite.config.js (#2022)
* change API Keys for blocknative demo and docs site * logout capsule wallet on disconnect * fix Fragment issue * Update package.json * Update package.json * Update yarn.lock * alpha tag * Update yarn.lock * Fix for the SyntaxError issue * update alpha tag * Update yarn.lock * Fix for the issues popping up * Update package.json * Update package.json --------- Co-authored-by: jjasonlan <[email protected]>
1 parent 00c7ef4 commit 0c0a1c3

File tree

6 files changed

+21
-17
lines changed

6 files changed

+21
-17
lines changed

docs/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@tailwindcss/typography": "^0.5.9",
2727
"@types/animejs": "^3.1.7",
2828
"@types/react": "^18.0.37",
29+
"@vitejs/plugin-react": "^4.2.1",
2930
"assert": "^2.0.0",
3031
"autoprefixer": "^10.4.14",
3132
"browserify-zlib": "^0.2.0",
@@ -54,7 +55,8 @@
5455
"@web3-onboard/arcana-auth": "^2.0.0",
5556
"@web3-onboard/bitget": "^2.0.0",
5657
"@web3-onboard/blocto": "^2.0.0",
57-
"@web3-onboard/capsule": "^2.0.1-alpha.2",
58+
"@web3-onboard/capsule": "^2.0.1-alpha.3",
59+
"@web3-onboard/cede-store": "^2.2.0",
5860
"@web3-onboard/coinbase": "^2.2.5",
5961
"@web3-onboard/core": "^2.21.2",
6062
"@web3-onboard/dcent": "^2.2.7",

docs/vite.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import { sveltekit } from '@sveltejs/kit/vite'
22
import icons from 'unplugin-icons/vite'
33
import kitDocs from '@svelteness/kit-docs/node'
44
import nodePolyfills from 'rollup-plugin-polyfill-node'
5+
import react from '@vitejs/plugin-react';
56

67
/** @type {import('vite').UserConfig} */
78
const config = {
8-
plugins: [icons({ compiler: 'svelte' }), kitDocs(), sveltekit()],
9+
plugins: [react(), icons({ compiler: 'svelte' }), kitDocs(), sveltekit()],
910
resolve: {
1011
alias: {
1112
crypto: 'crypto-browserify',
@@ -25,7 +26,8 @@ const config = {
2526
}
2627
},
2728
define: {
28-
'import.meta.env.VERCEL': JSON.stringify(process.env.VERCEL)
29+
'import.meta.env.VERCEL': JSON.stringify(process.env.VERCEL),
30+
'process.env.NODE_DEBUG': JSON.stringify('')
2931
},
3032
optimizeDeps: {
3133
exclude: ['@ethersproject/hash', 'wrtc', 'http', 'react/jsx-runtime'],

packages/capsule/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/capsule",
3-
"version": "2.0.1-alpha.2",
3+
"version": "2.0.1-alpha.3",
44
"description": "Capsule SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",
@@ -56,7 +56,7 @@
5656
"Capsule"
5757
],
5858
"dependencies": {
59-
"@usecapsule/web-sdk": "0.29.4-dev.15",
59+
"@usecapsule/web-sdk": "0.29.4",
6060
"@wagmi/chains": "^1.8.0",
6161
"@web3-onboard/common": "^2.3.3",
6262
"react-dom": "^18.2.0"

packages/capsule/yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2232,9 +2232,9 @@
22322232
integrity sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==
22332233

22342234
"@types/react@^18.0.2":
2235-
version "18.2.39"
2236-
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.39.tgz#744bee99e053ad61fe74eb8b897f3ab5b19a7e25"
2237-
integrity sha512-Oiw+ppED6IremMInLV4HXGbfbG6GyziY3kqAwJYOR0PNbkYDmLWQA3a95EhdSmamsvbkJN96ZNN+YD+fGjzSBA==
2235+
version "18.2.42"
2236+
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.2.42.tgz#6f6b11a904f6d96dda3c2920328a97011a00aba7"
2237+
integrity sha512-c1zEr96MjakLYus/wPnuWDo1/zErfdU9rNsIGmE+NV71nx88FG9Ttgo5dqorXTu/LImX2f63WBP986gJkMPNbA==
22382238
dependencies:
22392239
"@types/prop-types" "*"
22402240
"@types/scheduler" "*"
@@ -2283,10 +2283,10 @@
22832283
dependencies:
22842284
axios "^0.27.2"
22852285

2286-
"@usecapsule/[email protected]-dev.15":
2287-
version "0.29.4-dev.15"
2288-
resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-0.29.4-dev.15.tgz#33d3ec6d57c59baa469748d88719175b7722189a"
2289-
integrity sha512-lrnuohk7XbbDxlbJJiSHL+MMD50mGimkg6xWqdUFs6ucFZY2b4OBAiCvZQX9/WfQpB3qH5aP3hl3SRLFT5adMw==
2286+
"@usecapsule/[email protected]":
2287+
version "0.29.4"
2288+
resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-0.29.4.tgz#17e5e2604f97d59ccd2f4ba69b7b99a021f3dadd"
2289+
integrity sha512-0V2rknVTVdrz7Gt3K8BvfYqz/yXFWgfscrHM5S4NfOBhVITYdg/Sd3naCROyNBrbXRpmOBUA23AlF+7jo/GkMA==
22902290
dependencies:
22912291
"@celo/utils" "3.2.0"
22922292
"@chakra-ui/icons" "^2.1.1"

packages/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@web3-onboard/arcana-auth": "^2.0.0",
3131
"@web3-onboard/bitget": "2.0.1",
3232
"@web3-onboard/blocto": "2.0.0",
33-
"@web3-onboard/capsule": "2.0.1-alpha.2",
33+
"@web3-onboard/capsule": "2.0.1-alpha.3",
3434
"@web3-onboard/cede-store": "^2.2.0",
3535
"@web3-onboard/coinbase": "^2.2.6",
3636
"@web3-onboard/core": "^2.21.2",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5098,10 +5098,10 @@
50985098
dependencies:
50995099
axios "^0.27.2"
51005100

5101-
"@usecapsule/[email protected]-dev.15":
5102-
version "0.29.4-dev.15"
5103-
resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-0.29.4-dev.15.tgz#33d3ec6d57c59baa469748d88719175b7722189a"
5104-
integrity sha512-lrnuohk7XbbDxlbJJiSHL+MMD50mGimkg6xWqdUFs6ucFZY2b4OBAiCvZQX9/WfQpB3qH5aP3hl3SRLFT5adMw==
5101+
"@usecapsule/[email protected]":
5102+
version "0.29.4"
5103+
resolved "https://registry.yarnpkg.com/@usecapsule/web-sdk/-/web-sdk-0.29.4.tgz#17e5e2604f97d59ccd2f4ba69b7b99a021f3dadd"
5104+
integrity sha512-0V2rknVTVdrz7Gt3K8BvfYqz/yXFWgfscrHM5S4NfOBhVITYdg/Sd3naCROyNBrbXRpmOBUA23AlF+7jo/GkMA==
51055105
dependencies:
51065106
"@celo/utils" "3.2.0"
51075107
"@chakra-ui/icons" "^2.1.1"

0 commit comments

Comments
 (0)