Skip to content

Commit 0600dd8

Browse files
authored
fix: typo, missing inject fn (#1596)
1 parent 3ef0fa8 commit 0600dd8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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:
14631463
Then add the following to your `vite.config.js` file:
14641464

14651465
```javascript
1466+
import inject from '@rollup/plugin-inject'
1467+
14661468
import nodePolyfills from 'rollup-plugin-polyfill-node'
14671469

14681470
const 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: {

0 commit comments

Comments
 (0)