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

Revert to using CleanWebpackPlugin #1738

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Jan 30, 2024

Description of proposed changes

This reverts "Replace CleanWebpackPlugin with output.clean" (798f3ee) due to issues with Hot Module Replacement and output.clean.

Related issue(s)

Checklist

This reverts "Replace CleanWebpackPlugin with output.clean" (798f3ee)
due to issues with Hot Module Replacement and output.clean.
@victorlin victorlin self-assigned this Jan 30, 2024
@nextstrain-bot nextstrain-bot temporarily deployed to auspice-victorlin-resto-mqhgke January 30, 2024 00:25 Inactive
@victorlin victorlin marked this pull request as ready for review January 30, 2024 00:45
Copy link
Member

@jameshadfield jameshadfield left a comment

Choose a reason for hiding this comment

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

Thanks @victorlin!

One of the reasons I've been hesitant to dive back into webpack is due to bugs such as this. Hot reloading, extendability, aliases, transpilation, env-variable handling, bundling and differential cacheing all rely on webpack and the interaction between webpack and a dozen other packages. From experience it's all too easy to break some of this functionality inadvertantly. This part of the JS ecosystem keeps evolving, and so we fall out of date over time. (Notice all the deprecation warnings we are getting both at build time and run time.)

I wonder if the best way to update this part of Auspice is a concerted push to update all of React, hot reloading, redux (?), babel, webpack, webpack plugins, etc. As part of this we'd define a number of tests beforehand so we can be more confident nothing's broken.

@jameshadfield jameshadfield merged commit e6e4d1a into master Jan 30, 2024
20 checks passed
@jameshadfield jameshadfield deleted the victorlin/restore-CleanWebpackPlugin branch January 30, 2024 21:16
@victorlin
Copy link
Member Author

victorlin commented Jan 30, 2024

A concentrated push sounds like the right approach here (instead of incremental pushes such as #1733). That would require much more effort and intention. I've added it to the "Project ideas" section in the priorities doc:

  • Modernize front-end codebases
    • TypeScript adoption in Auspice
    • Replace outdated usage of React, Webpack, Babel, Redux, etc.

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.

[dev] hot-reloading broken
3 participants