Update Saas and Vite to fix deprecation warnings
This commit updates Dart Sass to version 1.79.4 to address deprecation warnings. It also updates Vite to 5.4.x to be able to use the modern Sass compiler. Changes: - Update `saas` to latest - Update `vite` from 5.3.x to 5.4.x - Replace `lighten` and `darken` with `color.adjust` due to deprecation. - Set Vite to use the modern compiler instead of the deprecated legacy one - Pin `sass` to patch versions to prevent unexpected deprecations using tilde (~) for in package.json.
This commit is contained in:
@@ -39,6 +39,15 @@ export function createVueConfig(options?: {
|
||||
server: {
|
||||
port: 3169,
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
// The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
|
||||
// Vite defaults compiler to 'legacy', see https://vite.dev/config/shared-options#css-preprocessoroptions
|
||||
api: 'modern-compiler',
|
||||
},
|
||||
},
|
||||
},
|
||||
test: {
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
|
||||
Reference in New Issue
Block a user