Patch: Upgrade to node 22 and webpack 5#1384
Conversation
…e unnecessary polyfills
|
Hi @jenbutongit, what's the latest on this and is it something I can help to get across the line? |
…ng affected packages. also removed standard format/lint library since eslint/prettier is used instead.
| useBuiltIns: process.env.NODE_ENV === "test" ? false : "usage", | ||
| corejs: process.env.NODE_ENV === "test" ? false : 3, |
There was a problem hiding this comment.
babel can probably be entirely removed now, node 22+ and ES2025 has all the features we use - but need to unpick our test suite (.transform.js hooks into babel and does additional transforms which I don't want to address in this PR tbh)
Hey @Dashue - thanks for the nudge and the offer. I probably left it at the time due to the webpack/babel/eslint etc config changes required..! They look to be sorted now - would you like to have a glance over the changes? otherwise I'll throw it up to community/other maintainers to review |
|
Hi Jen! Looks good to me Ran it locally on windows and hit an issue on startup with the designer - useBuiltIns: process.env.NODE_ENV === "test" ? false : "usage"
+ useBuiltIns: process.env.NODE_ENV === "test" ? false : "entry"Tried the fix found in webpack/mini-css-extract-plugin#471 (comment) and it fixed it |
Note
This template is designed to help both contributors and maintainers. It is a checklist to ensure all necessary
information is provided, and prompts contributors on any contribution guidelines they have missed.
Do not remove sections.
They are important for the review process and help maintainers ensure quality and good documentation across the
project.
Some checkboxes will not apply to every change, so feel free to leave them unchecked if they are not relevant.
Description
Context
Upgrading to latest version of node 22 across runner, designer, model, queue-model and submitter
Changes
mainFiles: ["index"]is needed to default to index.js if a module is imported without the file (mainly govuk-jsx/* components had this issue)Type of change
What is the type of change you are making?
PR title
PR titles should be prefixed with the type of change you are making, based on the README.md#versioning.
This is so that when performing a squash merge, the PR title is automatically used as the commit message.
Have you updated the PR title to match the type of change you are making?
Testing
Automated tests
Have you added automated tests?
Manual tests
Have you manually tested your changes?
Have you attached an example form JSON or snippet for the reviewer in this PR?
Steps to test
N/A
Documentation
Have you updated the documentation?
Discussion
Warning
Large or complex changes may require discussion with the maintainers before they can be merged. If it has not yet been discussed, it may delay the review process
Have you discussed this change with the maintainers?