fix: the CJS build of Vite's Node API is deprecated

This commit is contained in:
huzibaca 2024-11-18 01:07:16 +08:00
parent 7f0d9952aa
commit d8cf585fc5
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302

View File

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