Skip to content
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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Webpack 5 upgrade #718

wants to merge 8 commits into from

Conversation

na9da
Copy link
Contributor

@na9da na9da commented Dec 5, 2024

Fixes TerriaJS/terriajs#6998
Merge after TerriaJS/terriajs#7351

@@ -46,7 +29,7 @@ function createLoader() {

polyfill(function () {
loadMainScript()
.catch(() => {
.catch((err) => {
Copy link
Contributor

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) {
Copy link
Contributor

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",
Copy link
Contributor

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.

@pjonsson
Copy link
Contributor

pjonsson commented Dec 5, 2024

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.

@na9da na9da mentioned this pull request Dec 8, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to webpack 5
2 participants