fix: remove vite-plugin-image-optimizer

This commit is contained in:
trafficlunar 2025-02-21 18:31:56 +00:00
parent cfd9a8f198
commit 728c376885
3 changed files with 1 additions and 29 deletions

View file

@ -62,7 +62,6 @@
"typescript": "~5.6.3",
"typescript-eslint": "^8.24.1",
"vite": "^6.1.1",
"vite-plugin-image-optimizer": "^1.1.8",
"vite-plugin-svgr": "^4.3.0"
}
}

View file

@ -159,9 +159,6 @@ importers:
vite:
specifier: ^6.1.1
version: 6.1.1(@types/node@22.13.4)(jiti@1.21.7)(yaml@2.7.0)
vite-plugin-image-optimizer:
specifier: ^1.1.8
version: 1.1.8(vite@6.1.1(@types/node@22.13.4)(jiti@1.21.7)(yaml@2.7.0))
vite-plugin-svgr:
specifier: ^4.3.0
version: 4.3.0(rollup@4.34.8)(typescript@5.6.3)(vite@6.1.1(@types/node@22.13.4)(jiti@1.21.7)(yaml@2.7.0))
@ -1903,10 +1900,6 @@ packages:
ajv@6.12.6:
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
ansi-colors@4.1.3:
resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==}
engines: {node: '>=6'}
ansi-regex@5.0.1:
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
engines: {node: '>=8'}
@ -2627,9 +2620,6 @@ packages:
resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}
engines: {node: '>=8'}
pathe@1.1.2:
resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==}
performance-now@2.1.0:
resolution: {integrity: sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==}
@ -3022,12 +3012,6 @@ packages:
util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
vite-plugin-image-optimizer@1.1.8:
resolution: {integrity: sha512-40bYRDHQLUOrIwJIJQqyKJHrfgVshqzDLtMy8SEgf+fB7PnppslSTTkY7PJFrBGqgbCdOdN9KkqsvccXmnEa5Q==}
engines: {node: '>=14'}
peerDependencies:
vite: '>=3'
vite-plugin-svgr@4.3.0:
resolution: {integrity: sha512-Jy9qLB2/PyWklpYy0xk0UU3TlU0t2UMpJXZvf+hWII1lAmRHrOUKi11Uw8N3rxoNk7atZNYO3pR3vI1f7oi+6w==}
peerDependencies:
@ -4821,8 +4805,6 @@ snapshots:
json-schema-traverse: 0.4.1
uri-js: 4.4.1
ansi-colors@4.1.3: {}
ansi-regex@5.0.1: {}
ansi-regex@6.1.0: {}
@ -5519,8 +5501,6 @@ snapshots:
path-type@4.0.0: {}
pathe@1.1.2: {}
performance-now@2.1.0: {}
picocolors@1.1.1: {}
@ -5985,12 +5965,6 @@ snapshots:
util-deprecate@1.0.2: {}
vite-plugin-image-optimizer@1.1.8(vite@6.1.1(@types/node@22.13.4)(jiti@1.21.7)(yaml@2.7.0)):
dependencies:
ansi-colors: 4.1.3
pathe: 1.1.2
vite: 6.1.1(@types/node@22.13.4)(jiti@1.21.7)(yaml@2.7.0)
vite-plugin-svgr@4.3.0(rollup@4.34.8)(typescript@5.6.3)(vite@6.1.1(@types/node@22.13.4)(jiti@1.21.7)(yaml@2.7.0)):
dependencies:
'@rollup/pluginutils': 5.1.4(rollup@4.34.8)

View file

@ -3,11 +3,10 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
import { ViteImageOptimizer } from "vite-plugin-image-optimizer";
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), svgr(), ViteImageOptimizer({ exclude: "spritesheet.png" })],
plugins: [react(), svgr()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),