Skip to content

Commit

Permalink
Add polyfills to production bundles (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
Isti01 authored Feb 12, 2025
1 parent 23d12be commit 016872e
Show file tree
Hide file tree
Showing 3 changed files with 1,025 additions and 8 deletions.
2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"@types/react-helmet": "6.1.11",
"@typescript-eslint/eslint-plugin": "8.22.0",
"@typescript-eslint/parser": "8.22.0",
"@vitejs/plugin-legacy": "^6.0.1",
"@vitejs/plugin-react-swc": "^3.7.2",
"eslint": "^9.19.0",
"eslint-config-prettier": "10.0.1",
Expand All @@ -62,6 +63,7 @@
"eslint-plugin-react-refresh": "^0.4.18",
"npm-run-all": "4.1.5",
"prettier": "3.4.2",
"terser": "^5.38.2",
"typescript": "^5.7.3",
"vite": "^6.0.11"
},
Expand Down
3 changes: 2 additions & 1 deletion frontend/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { defineConfig } from 'vite'
import legacy from '@vitejs/plugin-legacy'
import react from '@vitejs/plugin-react-swc'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), legacy({modernPolyfills: true})],
build: {
rollupOptions: {
output: {
Expand Down
Loading

0 comments on commit 016872e

Please sign in to comment.