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

Upgrade webpack v4 → v5 #1520

Merged
merged 17 commits into from
Dec 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Upgrade webpack Plugins and Loaders
I went through all webpack-related packages and looked for the earliest
version that supports both webpack 4 and webpack 5. If no version
matched that, then I picked the latest version that supports webpack 4.

- clean-webpack-plugin: https://github.com/johnagan/clean-webpack-plugin/blob/v4.0.0/package.json#L50
- compression-webpack-plugin: https://github.com/webpack-contrib/compression-webpack-plugin/blob/v3.1.0/package.json#L41
- html-webpack-plugin: https://github.com/jantimon/html-webpack-plugin/blob/v4.5.2/package.json#L49
    - No version that supports both webpack 4 and 5. This is the latest
      version that supports webpack 4.
- lodash-webpack-plugin: https://github.com/lodash/lodash-webpack-plugin/blob/0.11.6/package.json#L46
- webpack-bundle-analyzer: https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/v3.9.1/package.json#L89
    - No version that supports both webpack 4 and 5. This is the latest
      version that supports webpack 4. Note that it is released as 3.9.0
      on NPM.
- webpack-dev-middleware: https://github.com/webpack/webpack-dev-middleware/blob/v3.7.3/package.json#L31
- webpack-hot-middleware: https://github.com/webpack-contrib/webpack-hot-middleware/blob/v2.25.2/package.json#L42
    - No version that supports both webpack 4 and 5. This is the latest
      version that supports webpack 4.

Command used:

    npm install --save \
        clean-webpack-plugin@4.0.0 \
        compression-webpack-plugin@3.1.0 \
        html-webpack-plugin@4.5.2 \
        lodash-webpack-plugin@0.11.6 \
        webpack-bundle-analyzer@3.9.0 \
        webpack-dev-middleware@3.7.3 \
        webpack-hot-middleware@2.25.2
victorlin committed Nov 22, 2022
commit 7c0df209c7b478bbeb61b2550f08a85e4fee4bed
Loading