feat: add path and process dependencies; remove unused SCSS preprocessor options

This commit is contained in:
Tunglies
2025-09-06 21:04:58 +08:00
Unverified
parent 7c9104a5b9
commit 579f9bd1f8
3 changed files with 35 additions and 7 deletions

View File

@@ -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",

32
pnpm-lock.yaml generated
View File

@@ -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

View File

@@ -133,13 +133,7 @@ export default defineConfig({
"@root": path.resolve("."),
},
},
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler",
},
},
},
define: {
OS_PLATFORM: `"${process.platform}"`,
},