Skip to content

Commit

Permalink
docs: update vite config to suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Aug 1, 2023
1 parent 32548c9 commit 23ff056
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,11 @@ import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfil

export default defineConfig({
// Other rules...
resolve: {
alias: {
util: "util/",
}
},
optimizeDeps: {
esbuildOptions: {
// Node.js global to browser globalThis
Expand Down
1 change: 1 addition & 0 deletions examples/vite-example/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default defineConfig({
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
util: "util/",
}
},
optimizeDeps: {
Expand Down

0 comments on commit 23ff056

Please sign in to comment.