-
Notifications
You must be signed in to change notification settings - Fork 646
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:
process.env
polyfill issue in vite (#1993)
* fix: process.env crashing in vite * fix: check if process is defined if vite polyfill not available * chore: added .env.local.example for rainbowkit package * fix: migrate to dotenv-cli for .env.local support * chore: amend changeset * revert: dotenv-cli, use dotenv config in build script for relative paths * chore: update contributing.md --------- Co-authored-by: Daniel Sinclair <[email protected]>
- Loading branch information
1 parent
2d4c86d
commit 9be5452
Showing
8 changed files
with
141 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rainbow-me/rainbowkit": patch | ||
--- | ||
|
||
Resolved an issue with the Enhanced Provider when using RainbowKit in Vite without a `process.env` polyfill |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,6 @@ | |
"@vanilla-extract/esbuild-plugin": "^2.3.5", | ||
"@vanilla-extract/vite-plugin": "^4.0.9", | ||
"autoprefixer": "^10.4.16", | ||
"dotenv": "^16.4.5", | ||
"esbuild": "^0.20.2", | ||
"esbuild-plugin-replace": "^1.4.0", | ||
"ethers": "^5.6.8", | ||
|
@@ -73,7 +72,8 @@ | |
"typescript": "5.4.2", | ||
"viem": "2.9.31", | ||
"vitest": "^0.33.0", | ||
"wagmi": "^2.9.2" | ||
"wagmi": "^2.9.2", | ||
"dotenv": "^16.4.5" | ||
}, | ||
"packageManager": "[email protected]", | ||
"pnpm": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RAINBOW_PROVIDER_API_KEY= # Required for Enhanced Provider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.