RaspberryPiFoundation / editor-ui

Code Editor web component
https://editor-static.raspberrypi.org
Apache License 2.0
36 stars 9 forks source link

Update yarn from version 1.22.21 to 3.4.1 and webpack-dev-server from 3.11.1 to 4.0.0 #895

Closed tuzz closed 8 months ago

tuzz commented 8 months ago

We need to be able to conditionally set headers for pyodideWorker.js in pull request https://github.com/RaspberryPiFoundation/editor-ui/pull/893 but this feature isn’t supported in webpack-dev-server 3.x.x. We therefore need to upgrade to version 4.0.0 which allows a function to be provided in the headers option. When attempting this upgrade, I ran into this issue and only managed to resolve it by also updating yarn to version 3.

I’ve tried to follow the migration guide here: https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md

github-actions[bot] commented 8 months ago
github-actions[bot] commented 8 months ago
github-actions[bot] commented 8 months ago
github-actions[bot] commented 8 months ago
github-actions[bot] commented 8 months ago
github-actions[bot] commented 8 months ago
github-actions[bot] commented 8 months ago
github-actions[bot] commented 8 months ago