Unverified Commit d27bb14b authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

backport: fix(turbo): sassOptions silenceDeprecations was not overwritten with…

backport: fix(turbo): sassOptions silenceDeprecations was not overwritten with user options (#74005)

Backports:
- https://github.com/vercel/next.js/pull/73937Co-authored-by: 's avatarJiwon Choi <devjiwonchoi@gmail.com>
Co-authored-by: 's avatarDonny/강동윤 <kdy1997.dev@gmail.com>
parent 0c8187a3
......@@ -16,10 +16,13 @@ pub async fn maybe_add_sass_loader(
bail!("sass_options must be an object");
};
// TODO: Remove this once we upgrade to sass-loader 16
sass_options.insert(
"silenceDeprecations".into(),
serde_json::json!(["legacy-js-api"]),
);
let silence_deprecations = if let Some(v) = sass_options.get("silenceDeprecations") {
v.clone()
} else {
serde_json::json!(["legacy-js-api"])
};
sass_options.insert("silenceDeprecations".into(), silence_deprecations);
let mut rules = if let Some(webpack_rules) = webpack_rules {
webpack_rules.await?.clone_value()
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment