Skip to content

Commit

Permalink
fix: vite config examples for polyfiling web3auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Bryce committed Aug 17, 2024
1 parent d6a91e9 commit 8dc2f4c
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
25 changes: 25 additions & 0 deletions apps/demo02-presence/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,28 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,ts}']
}
});
// https://web3auth.io/docs/troubleshooting/svelte-issues
// import { sveltekit } from "@sveltejs/kit/vite";
// import { defineConfig } from "vitest/config";
// import { nodePolyfills } from "vite-plugin-node-polyfills";
//
// export default defineConfig({
// plugins: [
// nodePolyfills({
// exclude: ["fs"],
// globals: {
// Buffer: true,
// global: true,
// process: true,
// },
// protocolImports: true,
// }),
// sveltekit(),
// ],
// optimizeDeps: {
// include: ["dayjs/plugin/relativeTime.js", "dayjs", "@web3auth/ethereum-provider"],
// },
// test: {
// include: ["src/**/*.{test,spec}.{js,ts}"],
// },
// });
23 changes: 23 additions & 0 deletions apps/w3a-auth0-demo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
26 changes: 26 additions & 0 deletions packages/chainpresence/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,29 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,ts}']
}
});

// https://web3auth.io/docs/troubleshooting/svelte-issues
// import { sveltekit } from "@sveltejs/kit/vite";
// import { defineConfig } from "vitest/config";
// import { nodePolyfills } from "vite-plugin-node-polyfills";
//
// export default defineConfig({
// plugins: [
// nodePolyfills({
// exclude: ["fs"],
// globals: {
// Buffer: true,
// global: true,
// process: true,
// },
// protocolImports: true,
// }),
// sveltekit(),
// ],
// optimizeDeps: {
// include: ["dayjs/plugin/relativeTime.js", "dayjs", "@web3auth/ethereum-provider"],
// },
// test: {
// include: ["src/**/*.{test,spec}.{js,ts}"],
// },
// });

0 comments on commit 8dc2f4c

Please sign in to comment.