-
Notifications
You must be signed in to change notification settings - Fork 32
RHSTOR-7462: Upgrade style-loader to 4.0.0 #2138
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
Closed
NIKHITHAVADDEMPUDI
wants to merge
2
commits into
red-hat-storage:master
from
NIKHITHAVADDEMPUDI:UpgradeStyleLoader
+6
−40
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9921,11 +9921,6 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" | ||
integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== | ||
|
||
json-parse-better-errors@^1.0.2: | ||
version "1.0.2" | ||
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" | ||
integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== | ||
|
||
json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: | ||
version "2.3.1" | ||
resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" | ||
|
@@ -10132,11 +10127,6 @@ listr2@^3.8.3: | |
through "^2.3.8" | ||
wrap-ansi "^7.0.0" | ||
|
||
loader-runner@^4.1.0: | ||
version "4.3.0" | ||
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1" | ||
integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg== | ||
|
||
loader-runner@^4.2.0: | ||
version "4.2.0" | ||
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.2.0.tgz#d7022380d66d14c5fb1d496b89864ebcfd478384" | ||
|
@@ -12904,10 +12894,10 @@ strnum@^1.0.5: | |
resolved "https://registry.yarnpkg.com/strnum/-/strnum-1.0.5.tgz#5c4e829fe15ad4ff0d20c3db5ac97b73c9b072db" | ||
integrity sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA== | ||
|
||
style-loader@^3.3.4: | ||
version "3.3.4" | ||
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-3.3.4.tgz#f30f786c36db03a45cbd55b6a70d930c479090e7" | ||
integrity sha512-0WqXzrsMTyb8yjZJHDqwmnwRJvhALK9LfRtRc6B4UTWe8AijYLZYZ9thuJTZc2VfQWINADW/j+LiJnfy2RoC1w== | ||
style-loader@^4.0.0: | ||
version "4.0.0" | ||
resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-4.0.0.tgz#0ea96e468f43c69600011e0589cb05c44f3b17a5" | ||
integrity sha512-1V4WqhhZZgjVAVJyt7TdDPZoPBPNHbekX4fWnCJL1yQukhCeZhJySUL+gL9y6sNdN95uEOS83Y55SqHcP7MzLA== | ||
|
||
style-search@^0.1.0: | ||
version "0.1.0" | ||
|
@@ -13209,16 +13199,6 @@ thingies@^1.20.0: | |
resolved "https://registry.yarnpkg.com/thingies/-/thingies-1.21.0.tgz#e80fbe58fd6fdaaab8fad9b67bd0a5c943c445c1" | ||
integrity sha512-hsqsJsFMsV+aD4s3CWKk85ep/3I9XzYV/IXaSouJMYIoDlgyi11cBhsqYe9/geRfB0YIikBQg6raRaM+nIMP9g== | ||
|
||
thread-loader@^4.0.4: | ||
version "4.0.4" | ||
resolved "https://registry.yarnpkg.com/thread-loader/-/thread-loader-4.0.4.tgz#954141f6ce6c472b513737252b4729ecad2e4902" | ||
integrity sha512-tXagu6Hivd03wB2tiS1bqvw345sc7mKei32EgpYpq31ZLes9FN0mEK2nKzXLRFgwt3PsBB0E/MZDp159rDoqwg== | ||
dependencies: | ||
json-parse-better-errors "^1.0.2" | ||
loader-runner "^4.1.0" | ||
neo-async "^2.6.2" | ||
schema-utils "^4.2.0" | ||
|
||
throttleit@^1.0.0: | ||
version "1.0.0" | ||
resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-1.0.0.tgz#9e785836daf46743145a5984b6268d828528ac6c" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Please don't remove the
thread-loader
: it'll cause build issues in our CI environment.If any,
style-loader
should be removed as it's only for development purposes.@SanjalKatiyar @bipuladh what about replacing
style-loader
withmini-css-extract-plugin
?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.
AFAIU removing it shouldn't cause issues in CI env. Earlier "thread-loader" was being used with empty "options" (
options: {}
), in which case it was over utilising the resources. Removing it entirely might cause a slightly slower build time, but no errors.I was not aware that:
This loader is primarily meant for development. The default settings are not safe for production environments.
So, shifting tomini-css-extract-plugin
seems like a good idea !!Uh oh!
There was an error while loading. Please reload this page.
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.
@SanjalKatiyar The improvements I made on that PR were to prevent build errors/timeouts so removing it will imply either consuming more resources (thus having errors like 137) or facing more timeouts.
Uh oh!
There was an error while loading. Please reload this page.
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.
I remember, but wasn't that because "thread-loader" was consuming as much resources as it can get for parallel processing (that's why we were limiting worker pool count in the CI env).
If we don't use "thread-loader" at all, we won't be in that situation anymore. However, theoretically build time would increase.
Anyway, I can understand "style-loader" has other issues, so yeah we should remove it.
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.
Right: my point is that removing the thread-loader will likely cause CI timeouts and slower builds (but keeping it while removing its config will cause resource consumption errors like 137) so let's keep it with the current config.