Skip to content

Replace Webpack, update to Node 24#1269

Open
baltpeter wants to merge 4 commits into
masterfrom
webpack-node-staging
Open

Replace Webpack, update to Node 24#1269
baltpeter wants to merge 4 commits into
masterfrom
webpack-node-staging

Conversation

@baltpeter

@baltpeter baltpeter commented Apr 14, 2026

Copy link
Copy Markdown
Member

This should be rebase merged (once done).

@cypress

cypress Bot commented Apr 14, 2026

Copy link
Copy Markdown

datenanfragen/website    Run #9283

Run Properties:  status check passed Passed #9283  •  git commit 3d051df6d6: remove more unnecessary dependencies now that webpack is gone
Project datenanfragen/website
Branch Review webpack-node-staging
Run status status check passed Passed #9283
Run duration 04m 55s
Commit git commit 3d051df6d6: remove more unnecessary dependencies now that webpack is gone
Committer Benjamin Altpeter
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 2
Tests that did not run due to a developer annotating a test with .skip  Pending 8
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 84
View all changes introduced in this branch ↗︎

@mal-tee

mal-tee commented Apr 14, 2026

Copy link
Copy Markdown
Member

I had some problems with hugo server not properly rebuilding the site when working on new preact components, but that might have been a user error :D

baltpeter and others added 2 commits April 15, 2026 14:06
* Update to Hugo v0.140.0

This release brings various useful new esbuild features.

* Migrate JS bundles from Webpack to Hugo esbuild

* properly set NODE_ENV, fix PDF worker bundle URL

* code splitting using js.Batch

* wait for HTTP instead of TCP

* replace webpack-i18n-loader

* mostly use defines instead of generating scripts using Hugo templates

* Webpack be gone \o/

* Fixes #871: Remove `requests` scope from `I18N_DEFINITION`

* build-i18n: EN may affect translations for other langs

* address review

* build-i18n: unlink and fix allTranslations bug
Co-authored-by: Benjamin Altpeter <hi@bn.al>
@baltpeter baltpeter force-pushed the webpack-node-staging branch from 84dc383 to d1837c4 Compare April 15, 2026 12:06
@baltpeter

Copy link
Copy Markdown
Member Author

Ugh. Why is the build suddenly failing in CI when in wasn't before and I didn't touch anything that should affect it?

@baltpeter

Copy link
Copy Markdown
Member Author

Yesterday, rebuilds had the same error, today it worked. Maybe a broken cache?

cy.visit(site);
// TODO: undo this once we've seen it pass in CI
// cy.onlyOn('production');

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passed! And the new test replay looks quite useful.

@baltpeter baltpeter force-pushed the webpack-node-staging branch from 4bb07af to 3d051df Compare April 22, 2026 11:15
@baltpeter

Copy link
Copy Markdown
Member Author

Well, I guess this is ready for review now. Let me know if I forgot about anything.

As with #1212, this requires a very careful review by both @zner0L and @mal-tee, especially considering that we still missed some stuff in #1212 (#1205 (comment), #1205 (comment), 3d051df).

Also, please don't merge immediately after approving. I would like to squash 3d051df into 7c82b59 but didn't do that yet to make review easier.

@baltpeter baltpeter marked this pull request as ready for review April 22, 2026 11:37
Comment on lines 199 to 201
// (https://github.com/datenanfragen/website/issues/1043#issuecomment-1472355575,
// https://github.com/datenanfragen/website/issues/1043#issuecomment-1472476245).
// it('loads company from slug and clears URL parameters afterwards', () => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe not for this PR, but we can give it another shot after merging this?

@mal-tee mal-tee left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Can you bump cypress to 15.4.1 before merging?

Image

Running cypress locally gives me this nice console warning. The whole test seems to be kinda cursed. How should we adress this? :)

The browser(?) VM also complains a lot about bad HTML tables, but this is a problem for another issue.

Image


// The blur should fix the flaking here: https://github.com/cypress-io/cypress/issues/5830
cy.get('#aa-search-input').type('1&1').blur();
cy.get('#aa-search-input').type('1&1', { force: true });

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the issue (why did you remove the link?) it looks like both blur and force are hotfixes. Why change this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants