-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from bob-collective/fix/playgrounds-packages
fix: sats-wagmi package.json
- Loading branch information
Showing
4 changed files
with
435 additions
and
25 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 |
---|---|---|
@@ -1,7 +1,30 @@ | ||
import react from '@vitejs/plugin-react'; | ||
import { defineConfig } from 'vite'; | ||
import { nodePolyfills } from 'vite-plugin-node-polyfills'; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react()] | ||
plugins: [ | ||
react(), | ||
nodePolyfills({ | ||
include: ['path'], | ||
// To exclude specific polyfills, add them to this list. Note: if include is provided, this has no effect | ||
exclude: [ | ||
'http' // Excludes the polyfill for `http` and `node:http`. | ||
], | ||
// Whether to polyfill specific globals. | ||
globals: { | ||
Buffer: true, // can also be 'build', 'dev', or false | ||
global: true, | ||
process: true | ||
}, | ||
// Override the default polyfills for specific modules. | ||
overrides: { | ||
// Since `fs` is not supported in browsers, we can use the `memfs` package to polyfill it. | ||
fs: 'memfs' | ||
}, | ||
// Whether to polyfill `node:` protocol imports. | ||
protocolImports: true | ||
}) | ||
] | ||
}); |
Oops, something went wrong.