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

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

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

tuzz
Copy link
Contributor

@tuzz tuzz commented Jan 18, 2024

We need to be able to conditionally set headers for pyodideWorker.js in pull request #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

Copy link

Copy link

Copy link

Copy link

Copy link

@tuzz tuzz force-pushed the upgrade-webpack-dev-server branch from d1ec6a3 to ae66738 Compare January 18, 2024 19:56
@tuzz tuzz temporarily deployed to previews/upgrade-webpack-dev-server January 18, 2024 19:56 — with GitHub Actions Inactive
Copy link

We’re running into a problem with the string-width dependency. A comment
from this GitHub issue suggests upgrading yarn to version 3.

storybookjs/storybook#22431
@tuzz tuzz force-pushed the upgrade-webpack-dev-server branch from ae66738 to 16f2b36 Compare January 18, 2024 20:13
@tuzz tuzz temporarily deployed to previews/upgrade-webpack-dev-server January 18, 2024 20:13 — with GitHub Actions Inactive
Copy link

@tuzz tuzz changed the title Update webpack-dev-server from 3.11.1 to 4.0.0 Update yarn from version 1.22.21 to 3.4.1 and webpack-dev-server from 3.11.1 to 4.0.0 Jan 18, 2024
We need to be able to conditionally set headers for pyodideWorker.js in
pull request #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.

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

Copy link
Contributor

@magdalenajadach magdalenajadach left a comment

Choose a reason for hiding this comment

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

lgtm

@tuzz tuzz merged commit 7a92a4c into main Jan 19, 2024
8 checks passed
@tuzz tuzz deleted the upgrade-webpack-dev-server branch January 19, 2024 11:04
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.

2 participants