-
Notifications
You must be signed in to change notification settings - Fork 4.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
Update sass version to 1.35.2 with fixes #33433
Conversation
Size Change: -464 B (0%) Total Size: 1.07 MB
ℹ️ View Unchanged
|
The version could be also aligned in gutenberg/packages/scripts/package.json Line 75 in 29d2f51
|
@gziolo Any thoughts on how to reconcile the sass building and rule for It's possible to also do this in two steps, first update the .scss to remove |
Can we inject the See gutenberg/bin/packages/build-worker.js Lines 95 to 116 in b66e4c5
|
- Updates sass module to 1.35.2 to correct 3 vulnerability warnings - Removes / as a division operator, changes most / 2 to * 0.5 Two deprecation warnings remain that need to be updated to use ``` @use "sass:math"; math.div(numerator, denominator) ``` Warnings in: packages/block-library/src/freeform/editor.scss packages/block-library/src/gallery/style.scss The @use command must be declared prior to any other rules and the way we are building sass for the block-library the files are included and also built stand-alone, so the @use requirement can't be satisfied.
The @use statements must be the first item in sass files and so required refactoring the way we build and insert common import statements.
83c63dc
to
907dc6e
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.
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.
My approval was premature 🤣
npm run storybook:build
takes some time and it errors at some point. We probably need to add use
statement in SCSS file in here:
https://github.com/WordPress/gutenberg/blob/trunk/storybook/style.scss
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.
The fix was simple 🚢
Description
Two deprecation warnings remain that need to be updated to use
Warnings in:
packages/block-library/src/freeform/editor.scss
packages/block-library/src/gallery/style.scss
The @use command must be declared prior to any other rules and the way
we are building sass for the block-library the files are included and
also built stand-alone, so the @use requirement can't be satisfied.
How has this been tested?
Types of changes
Updates sass module and fixes deprecation warnings