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 a59fda512c
commit e8b3bd5bdc

View File

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