Skip to content

Commit

Permalink
WIP: Support legacy browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
longsleep committed Jul 2, 2024
1 parent 2aeb4bf commit f352daa
Show file tree
Hide file tree
Showing 3 changed files with 1,188 additions and 11 deletions.
2 changes: 2 additions & 0 deletions identifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.9.0",
"@typescript-eslint/typescript-estree": "^6.11.0",
"@vitejs/plugin-legacy": "^5.3.2",
"@vitejs/plugin-react": "^4.1.1",
"cldr": "^7.4.0",
"eslint": "^8.53.0",
Expand All @@ -60,6 +61,7 @@
"if-node-version": "^1.1.1",
"jsdom": "^22.1.0",
"source-map-explorer": "^1.8.0",
"terser": "^5.30.4",
"typescript": "^5.2.2",
"vite": "^4.5.2",
"vite-plugin-checker": "^0.6.2",
Expand Down
4 changes: 4 additions & 0 deletions identifier/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig, splitVendorChunkPlugin } from 'vite';
import legacy from '@vitejs/plugin-legacy'
import react from '@vitejs/plugin-react';
import checker from 'vite-plugin-checker';

Expand Down Expand Up @@ -29,6 +30,9 @@ export default defineConfig((env) => {
lintCommand: 'eslint --max-warnings=0 src',
},
}),
legacy({
targets: ['defaults', 'ie 6-11'],
}),
splitVendorChunkPlugin(),
],
test: {
Expand Down
Loading

0 comments on commit f352daa

Please sign in to comment.