From fdeae33955460891c33245528b8df11aff5a909d Mon Sep 17 00:00:00 2001 From: August Thornton Date: Thu, 2 Apr 2026 12:50:27 -0700 Subject: [PATCH] 1 silence sass deprecation warnings 2 3 Add silenceDeprecations option to renderSync() to suppress 4 known Dart Sass deprecation warnings during compilation. 5 These warnings are expected since Canvas still uses legacy 6 @import syntax and global built-in functions. 7 --- package.json | 2 +- src/compileBundle.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0375714..5ce7259 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@instructure/brandable_css", - "version": "3.1.0", + "version": "3.1.1", "description": "This is what we use to compile sass in canvas-lms with all our variants and custom theme editor css", "main": "./src/main.js", "scripts": { diff --git a/src/compileBundle.js b/src/compileBundle.js index 2b25ba3..0ff1edf 100644 --- a/src/compileBundle.js +++ b/src/compileBundle.js @@ -60,7 +60,8 @@ module.exports = async function compileBundle ({bundleName, variant}) { includePaths: includePaths, outputStyle: SASS_STYLE === 'nested' ? 'expanded' : SASS_STYLE, sourceComments: SASS_STYLE !== 'compressed', - sourceMap: false + sourceMap: false, + silenceDeprecations: ['import', 'global-builtin', 'color-functions', 'legacy-js-api', 'if-function'] }) const postcssResult = await postcss([