From 579f9bd1f81175238fcf4718f12da1e258efc4bf Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Sat, 6 Sep 2025 21:04:58 +0800 Subject: [PATCH] feat: add path and process dependencies; remove unused SCSS preprocessor options --- package.json | 2 ++ pnpm-lock.yaml | 32 ++++++++++++++++++++++++++++++++ vite.config.mts | 8 +------- 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a5bef622..8ec0479c 100644 --- a/package.json +++ b/package.json @@ -96,7 +96,9 @@ "jiti": "^2.5.1", "meta-json-schema": "^1.19.13", "node-fetch": "^3.3.2", + "path": "^0.12.7", "prettier": "^3.6.2", + "process": "^0.11.10", "sass": "^1.92.1", "terser": "^5.44.0", "typescript": "^5.9.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a95c6aea..638b059a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -204,9 +204,15 @@ importers: node-fetch: specifier: ^3.3.2 version: 3.3.2 + path: + specifier: ^0.12.7 + version: 0.12.7 prettier: specifier: ^3.6.2 version: 3.6.2 + process: + specifier: ^0.11.10 + version: 0.11.10 sass: specifier: ^1.92.1 version: 1.92.1 @@ -2492,6 +2498,9 @@ packages: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} + inherits@2.0.3: + resolution: {integrity: sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==} + inline-style-parser@0.2.4: resolution: {integrity: sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q==} @@ -3028,6 +3037,9 @@ packages: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} + path@0.12.7: + resolution: {integrity: sha512-aXXC6s+1w7otVF9UletFkFcDsJeO7lSZBPUQhtb5O0xJe8LtYhj/GxldoL09bBj9+ZmE2hNoHqQSFMN5fikh4Q==} + picocolors@1.1.1: resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} @@ -3056,6 +3068,10 @@ packages: engines: {node: '>=14'} hasBin: true + process@0.11.10: + resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} + engines: {node: '>= 0.6.0'} + prop-types@15.8.1: resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} @@ -3547,6 +3563,9 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + util@0.10.4: + resolution: {integrity: sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==} + vfile-message@4.0.2: resolution: {integrity: sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==} @@ -6261,6 +6280,8 @@ snapshots: imurmurhash@0.1.4: {} + inherits@2.0.3: {} + inline-style-parser@0.2.4: {} internal-slot@1.1.0: @@ -6930,6 +6951,11 @@ snapshots: path-type@4.0.0: {} + path@0.12.7: + dependencies: + process: 0.11.10 + util: 0.10.4 + picocolors@1.1.1: {} picomatch@2.3.1: {} @@ -6948,6 +6974,8 @@ snapshots: prettier@3.6.2: {} + process@0.11.10: {} + prop-types@15.8.1: dependencies: loose-envify: 1.4.0 @@ -7546,6 +7574,10 @@ snapshots: dependencies: react: 19.1.1 + util@0.10.4: + dependencies: + inherits: 2.0.3 + vfile-message@4.0.2: dependencies: '@types/unist': 3.0.3 diff --git a/vite.config.mts b/vite.config.mts index 2c3e52ad..baa00172 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -133,13 +133,7 @@ export default defineConfig({ "@root": path.resolve("."), }, }, - css: { - preprocessorOptions: { - scss: { - api: "modern-compiler", - }, - }, - }, + define: { OS_PLATFORM: `"${process.platform}"`, },