From fec21771c890449752a39e973b5385d0ac7141cb Mon Sep 17 00:00:00 2001 From: Roman Vyakhirev Date: Thu, 28 May 2026 13:58:48 +0200 Subject: [PATCH 1/2] Silence Sass legacy JS API deprecation warning Suppress the "The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0" warning by configuring rollup-plugin-postcss to use the new silenceDeprecations option for sass. This change updates the rollup config to pass silenceDeprecations: ['legacy-js-api'] to the sass preprocessor, preventing the deprecation warnings during build. --- .../configs/rollup.config.mjs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/pluggable-widgets-tools/configs/rollup.config.mjs b/packages/pluggable-widgets-tools/configs/rollup.config.mjs index ad46da6b..778eeae5 100644 --- a/packages/pluggable-widgets-tools/configs/rollup.config.mjs +++ b/packages/pluggable-widgets-tools/configs/rollup.config.mjs @@ -158,7 +158,11 @@ export default async args => { minimize: production, plugins: [postcssImport(), postcssUrl({ url: "inline" })], sourceMap: !production ? "inline" : false, - use: ["sass"] + use: { + sass: { + silenceDeprecations: ['legacy-js-api'] + } + } }), ...getCommonPlugins({ sourceMaps: !production, @@ -354,7 +358,11 @@ export function postCssPlugin(outputFormat, production, postcssPlugins = []) { ...postcssPlugins ], sourceMap: !production ? "inline" : false, - use: ["sass"], + use: { + sass: { + silenceDeprecations: ['legacy-js-api'] + } + }, to: join(outDir, `${outWidgetFile}.css`) }); } From 57603abca5ce5b020aa51687c338fdd3c8b8c3c4 Mon Sep 17 00:00:00 2001 From: Roman Vyakhirev Date: Fri, 29 May 2026 10:10:09 +0200 Subject: [PATCH 2/2] Update changelog for Sass deprecation warning fix --- packages/pluggable-widgets-tools/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/pluggable-widgets-tools/CHANGELOG.md b/packages/pluggable-widgets-tools/CHANGELOG.md index d40e2425..ed8a9a66 100644 --- a/packages/pluggable-widgets-tools/CHANGELOG.md +++ b/packages/pluggable-widgets-tools/CHANGELOG.md @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed - We changed the order of imports in generated widget prop types to match that of the eslint sort-imports rule. +- We silenced the Sass legacy JS API deprecation warning that appeared during widget bundling. ## [11.8.1] - 2026-03-16