Skip to content

Commit

Permalink
Add Vite polyfill for siwe
Browse files Browse the repository at this point in the history
  • Loading branch information
aefhm committed Feb 7, 2025
1 parent f98abe9 commit 5f723d6
Show file tree
Hide file tree
Showing 3 changed files with 2,020 additions and 2,297 deletions.
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@
"@vitejs/plugin-react-swc": "^3.5.0",
"typescript": "^5.5.3",
"vite": "^5.4.8",
"vite-plugin-node-polyfills": "^0.23.0",
"vite-plugin-svgr": "^4.2.0"
},
"peerDependencies": {
"peerDependencies": {
"playwright-core": ">1.0"
}
}
3 changes: 2 additions & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { execSync } from 'node:child_process'
import { defineConfig } from 'vite'
import { nodePolyfills } from 'vite-plugin-node-polyfills'
import react from '@vitejs/plugin-react-swc'
import svgr from 'vite-plugin-svgr'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), svgr()],
plugins: [react(), svgr(), nodePolyfills()],
define: {
APP_VERSION: JSON.stringify(process.env.npm_package_version),
BUILD_COMMIT: JSON.stringify(execSync('git rev-parse HEAD').toString()),
Expand Down
Loading

0 comments on commit 5f723d6

Please sign in to comment.