Skip to content

Commit

Permalink
perf(theme): silence sass deprecations legacy-js-api (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhanbo authored Sep 24, 2024
1 parent 52c954a commit 6a3c643
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion theme/src/node/config/extendsBundlerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function extendsBundlerOptions(bundlerOptions: any, app: App): void {
api: 'modern-compiler',
...options,
sassOptions: {
silenceDeprecations: ['mixed-decls'],
silenceDeprecations: ['mixed-decls', 'legacy-js-api'],
...options.sassOptions,
},
}))
Expand All @@ -47,6 +47,7 @@ export function extendsBundlerOptions(bundlerOptions: any, app: App): void {
css: {
preprocessorOptions: {
sass: {
silenceDeprecations: ['mixed-decls', 'legacy-js-api'],
logger: {
warn: (message, { deprecation, deprecationType }) => {
if (deprecation && deprecationType.id === 'mixed-decls')
Expand All @@ -57,6 +58,7 @@ export function extendsBundlerOptions(bundlerOptions: any, app: App): void {
},
},
scss: {
silenceDeprecations: ['mixed-decls', 'legacy-js-api'],
logger: {
warn: (message, { deprecation, deprecationType }) => {
if (deprecation && deprecationType.id === 'mixed-decls')
Expand Down

0 comments on commit 6a3c643

Please sign in to comment.