-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(webpack): add fallback for optional wallet dependencies (#307)
- Add `webpackFallback` object - Export `webpackFallback` from index.ts - Update Next.js example app
- Loading branch information
Showing
3 changed files
with
23 additions
and
10 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Fallback configuration for Webpack to handle optional wallet dependencies. | ||
* This allows applications to build without these packages installed, | ||
* enabling users to include only the wallet packages they need. | ||
* Each package is set to 'false', which means Webpack will provide an empty module | ||
* if the package is not found, preventing build errors for unused wallets. | ||
*/ | ||
export const webpackFallback = { | ||
'@agoralabs-sh/avm-web-provider': false, | ||
'@algorandfoundation/liquid-auth-use-wallet-client': false, | ||
'@blockshake/defly-connect': false, | ||
'@magic-ext/algorand': false, | ||
'@perawallet/connect': false, | ||
'@perawallet/connect-beta': false, | ||
'@walletconnect/modal': false, | ||
'@walletconnect/sign-client': false, | ||
'lute-connect': false, | ||
'magic-sdk': false | ||
} |