-
Notifications
You must be signed in to change notification settings - Fork 263
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
Webpack 5 upgrade #718
base: main
Are you sure you want to change the base?
Webpack 5 upgrade #718
Conversation
Used the following command: ``` find lib/ -name '*.scss' -exec npx sass-migrator module {} \; ```
@@ -46,7 +29,7 @@ function createLoader() { | |||
|
|||
polyfill(function () { | |||
loadMainScript() | |||
.catch(() => { | |||
.catch((err) => { |
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.
Since this introduces an unused variable, I think it's better to call it _err
to be consistent with naming of other unused variables.
viewState.disclaimerVisible = true; | ||
}); | ||
} | ||
if (terria.configParameters.globalDisclaimer !== undefined) { |
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 impression for how TSification is done in TerriaJS is that defined()
is replaced with isDefined()
, so leaving the defined()
should make it easier to convert this to TypeScript in the future.
"sass": "<1.80", | ||
"sass-loader": "^10", | ||
"sass": "^1.81.0", | ||
"sass-loader": "^16.0.3", |
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.
Same comment as in TerriaJS, I think this requires bumping the engine version.
I looked through this and besides the things I commented on, the things that are there looks good to me. Would love to get webpack 5 merged soon so Trivy can stop shouting about critical security vulnerabilities. |
Fixes TerriaJS/terriajs#6998
Merge after TerriaJS/terriajs#7351