From 074e411af9b80a1d0224157ffaca5dea5197f138 Mon Sep 17 00:00:00 2001 From: Marston Connell <34043723+TheMarstonConnell@users.noreply.github.com> Date: Sun, 21 May 2023 12:26:23 -0400 Subject: [PATCH] fixing typo and vite config --- docs/developers/jackaljs/intro.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/developers/jackaljs/intro.md b/docs/developers/jackaljs/intro.md index d3059df..1e49889 100644 --- a/docs/developers/jackaljs/intro.md +++ b/docs/developers/jackaljs/intro.md @@ -18,6 +18,19 @@ To get started using Jackal in the browser, you'll need a few things! To get started, make sure you start your project using Vite. If you have an existing React app for example, re-init the project using Vite. +#### Updating Vite Config + +```js +// In vite.config.js: +import nodePolyfills from 'vite-plugin-node-stdlib-browser' + +export default defineConfig({ + plugins: [ + nodePolyfills() + ], +}) +``` + ### Connecting Your Wallet ```js @@ -99,7 +112,7 @@ const fileIo = await FileIo.trackIo(wallet) const listOfFolders = ["folder_name", ...] // you can create as many folders as you would like this way -// The first time a user connects, the use must init the system +// The first time a user connects, they must init the system const storage = await StorageHandler.trackStorage(wallet) const msg = storage.makeStorageInitMsg() await fileIo.generateInitialDirs(msg, listOfFolders)