-
Notifications
You must be signed in to change notification settings - Fork 38
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
fix: improve performance of styling extractor #2586
base: release/11.3
Are you sure you want to change the base?
fix: improve performance of styling extractor #2586
Conversation
@@ -219,7 +233,7 @@ export class CssVariableExtractor { | |||
} | |||
|
|||
let parsedValue: string | undefined; | |||
if (varValue instanceof SassString || varValue instanceof SassNumber || varValue instanceof SassBoolean) { | |||
if (varValue instanceof SassString || varValue instanceof SassNumber) { |
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.
To double check as well, was causing an issue with SassBoolean being undefined.
76dbe22
to
4c245d7
Compare
@@ -255,8 +255,10 @@ | |||
"replace-in-files-cli": "^2.2.0", | |||
"rimraf": "^5.0.1", | |||
"sass": "~1.79.0", | |||
"sass-embedded": "~1.79.0", |
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.
does it need to be in this package.json or the style's one would be enough?
4c245d7
to
4a92e89
Compare
Proposed change
Switch to sass-embedded package to use Dart Sass CLI, instead of sass package.
From my first tests, it seems the time it takes to extract styling variables is divided by 10.
Related issues