fix: the CJS build of Vite's Node API is deprecated
This commit is contained in:
@@ -43,6 +43,13 @@ export default defineConfig({
|
||||
"@root": path.resolve("."),
|
||||
},
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
api: "modern-compiler",
|
||||
},
|
||||
},
|
||||
},
|
||||
define: {
|
||||
OS_PLATFORM: `"${process.platform}"`,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user