-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deps: Use sass-loader v13 #99412
base: trunk
Are you sure you want to change the base?
Deps: Use sass-loader v13 #99412
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
31123c9
to
41be4eb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the CHANGELOG, the only 2 breaking changes possible affecting us may be:
- emit @warn at-rules as webpack warnings by default, if you want to revert behavior please use the warnRuleAsWarning option (fix!: emit
@warning
as webpack warning webpack-contrib/sass-loader#1054) (58ffb68) - using ~ is deprecated and can be removed from your code (we recommend it), but we still support it for historical reasons.
Should we address / apply any refactors before updating?
I'm on a dependency update rotation so I can take a look. Is that ok with you, @tyxla? |
@m1r0 definitely! I haven't had time to look into it today, so feel free to take over! |
41be4eb
to
8400d2f
Compare
I was not able to get |
@m1r0 can you please provide a diff to demonstrate what you tried? Thanks! |
Sure, here you go: diff --git a/client/landing/stepper/declarative-flow/internals/global.scss b/client/landing/stepper/declarative-flow/internals/global.scss
index cde9714f3ef..f31e8304e65 100644
--- a/client/landing/stepper/declarative-flow/internals/global.scss
+++ b/client/landing/stepper/declarative-flow/internals/global.scss
@@ -12,6 +12,8 @@
*/
@import "calypso/blocks/import/style/base";
+@warn "THIS IS A TEST WARNING";
+
/**
* General onboarding styling
*/
diff --git a/packages/calypso-build/webpack/sass.js b/packages/calypso-build/webpack/sass.js
index 09c12a634e5..95e501938fe 100644
--- a/packages/calypso-build/webpack/sass.js
+++ b/packages/calypso-build/webpack/sass.js
@@ -36,6 +36,7 @@ module.exports.loader = ( { includePaths, prelude, postCssOptions } ) => ( {
{
loader: require.resolve( 'sass-loader' ),
options: {
+ warnRuleAsWarning: true,
additionalData: prelude,
sassOptions: {
includePaths, Note that |
Proposed Changes
Consistently use
sass-loader@13
instead of 3 different versions.Why are these changes being made?
During the latest WordPress monorepo upgrade (#96470) I noticed this inconsistency and thought it might make sense to be fixed.
Testing Instructions