Skip to content

Commit

Permalink
fix: sass legacy warn
Browse files Browse the repository at this point in the history
  • Loading branch information
urmauur committed Jan 13, 2025
1 parent dfdf417 commit 9e11f95
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 34 deletions.
2 changes: 1 addition & 1 deletion joi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"@types/jest": "^29.5.12",
"autoprefixer": "10.4.16",
"jest": "^29.7.0",
"rollup-plugin-sass": "^1.14.0",
"tailwind-merge": "^2.2.0",
"tailwindcss": "^3.4.1",
"ts-jest": "^29.2.5"
Expand Down Expand Up @@ -71,6 +70,7 @@
"rollup-plugin-peer-deps-external": "2.2.4",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-typescript2": "0.36.0",
"sass": "^1.83.1",
"typescript": "^5.7.2"
},
"packageManager": "[email protected]"
Expand Down
3 changes: 1 addition & 2 deletions joi/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import tailwindcss from 'tailwindcss'
import typescriptEngine from 'typescript'
import resolve from '@rollup/plugin-node-resolve'
import copy from 'rollup-plugin-copy'
import sass from 'rollup-plugin-sass'

const packageJson = JSON.parse(readFileSync('./package.json'))

Expand All @@ -36,6 +35,7 @@ export default [
use: {
sass: {
silenceDeprecations: ['legacy-js-api'],
api: 'modern',
},
},
minimize: true,
Expand All @@ -58,7 +58,6 @@ export default [
],
}),
terser(),
sass(),
],
watch: {
clearScreen: false,
Expand Down
Loading

0 comments on commit 9e11f95

Please sign in to comment.