Skip to content

Commit

Permalink
[optimizer] Mute SASS mixed-decls warnings (elastic#190348)
Browse files Browse the repository at this point in the history
These are impacting DX. Remediation will be tracked at
elastic#190345.

## Testing

`node scripts/build_kibana_platform_plugins` and `yarn start` should not
log warnings about the `mixed-decls` sass rule
  • Loading branch information
jbudz authored Aug 12, 2024
1 parent 6ca1df0 commit 8e99daf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/kbn-optimizer/src/worker/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,18 @@ export function getWebpackConfig(
includePaths: [Path.resolve(worker.repoRoot, 'node_modules')],
sourceMap: true,
quietDeps: true,
logger: {
warn: (message: string, warning: any) => {
// Muted - see https://github.com/elastic/kibana/issues/190345 for tracking remediation
if (warning?.deprecationType?.id === 'mixed-decls') return;

if (warning.deprecation)
return process.stderr.write(
`DEPRECATION WARNING: ${message}\n${warning.stack}`
);
process.stderr.write('WARNING: ' + message);
},
},
},
},
},
Expand Down

0 comments on commit 8e99daf

Please sign in to comment.