File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1404,7 +1404,7 @@ const config: UserConfig = {
14041404 external: [' @web3-onboard/*' ],
14051405 plugins: [
14061406 nodePolyfills ({ include: [' crypto' , ' http' ] }),
1407- inject ({ Buffer: [' Buffer ' , ' Buffer' ] })
1407+ inject ({ Buffer: [' buffer ' , ' Buffer' ] })
14081408 ]
14091409 },
14101410 commonjsOptions: {
@@ -1463,6 +1463,8 @@ Add the following dev dependencies:
14631463Then add the following to your ` vite.config.js ` file:
14641464
14651465``` javascript
1466+ import inject from ' @rollup/plugin-inject'
1467+
14661468import nodePolyfills from ' rollup-plugin-polyfill-node'
14671469
14681470const MODE = process .env .NODE_ENV
@@ -1494,7 +1496,7 @@ export default {
14941496 external: [' @web3-onboard/*' ],
14951497 plugins: [
14961498 nodePolyfills ({ include: [' crypto' , ' http' ] }),
1497- inject ({ Buffer: [' Buffer ' , ' Buffer' ] })
1499+ inject ({ Buffer: [' buffer ' , ' Buffer' ] })
14981500 ]
14991501 },
15001502 commonjsOptions: {
You can’t perform that action at this time.
0 commit comments