Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings to use with Vite #393

Merged
merged 2 commits into from
Mar 22, 2022
Merged

Settings to use with Vite #393

merged 2 commits into from
Mar 22, 2022

Conversation

imsys
Copy link
Contributor

@imsys imsys commented Jan 27, 2022

Vite an alternative to Webpack, and it needs some special settings to get it working with Web3Modal.
Adding this to the documentation will help the users.
Those settings were found thanks to @theurgi at blocknative/web3-onboard#762 (comment)

Vite is being used as an alternative to Webpack, and it needs some special settings to get it working with Web3Modal.
Adding this to the documentation will help the users.
Those settings were found thanks to @theurgi at blocknative/web3-onboard#762 (comment)
@netlify
Copy link

netlify bot commented Jan 27, 2022

👷 Deploy request for web3modal pending review.
Visit the deploys page to approve it

🔨 Explore the source changes: 50e1ef5

@nick-the-dev
Copy link

You just saved my day! Thank you!

@pedrouid pedrouid merged commit 15a553c into reown-com:master Mar 22, 2022
@gaspardip
Copy link

I want to mention that this did not work for me, however the following did (using WalletConnect, Torus and Coinbase packages)

import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
import tsConfigPaths from "vite-tsconfig-paths";

export default defineConfig({
  resolve: {
    alias: {
      stream: "stream-browserify",
      process: "process/browser",
      https: "agent-base",
    },
  },
  build: {
    commonjsOptions: {
      transformMixedEsModules: true,
    },
  },
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants