Skip to content

Commit

Permalink
Chore: @vitejs/plugin-legacy 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
shlee9999 committed Nov 17, 2024
1 parent 0669643 commit 86e9e31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
13 changes: 0 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"dependencies": {
"@types/node": "^22.9.0",
"@types/react-helmet": "^6.1.11",
"@vitejs/plugin-legacy": "^5.4.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-helmet": "^6.1.0",
Expand All @@ -33,6 +32,10 @@
},
"devDependencies": {
"@eslint/js": "^9.13.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.6",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"@types/styled-components": "^5.1.34",
Expand All @@ -41,10 +44,6 @@
"@vite-pwa/assets-generator": "^0.2.4",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react-swc": "^3.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.6",
"globals": "^15.11.0",
"lighthouse": "^12.2.2",
"prettier": "^3.3.3",
Expand Down
6 changes: 0 additions & 6 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import legacy from '@vitejs/plugin-legacy'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import { compression } from 'vite-plugin-compression2'
Expand All @@ -16,11 +15,6 @@ export default defineConfig(({ mode }) => {
},
plugins: [
react(),
legacy({
targets: ['defaults', 'not IE 11'],
modernPolyfills: true,
renderLegacyChunks: false,
}),
tsconfigPaths(),
...(mode === 'development' ? [mkcert()] : []),
svgr(),
Expand Down

0 comments on commit 86e9e31

Please sign in to comment.