Skip to content

8.0.0: Webpack 5 & React 17

Compare
Choose a tag to compare
@bensmithett bensmithett released this 13 Feb 07:34
· 109 commits to main since this release
fb38ca5

Changes

  • Update .node-version to latest LTS version 14.15.4 (no code changes required)
  • Upgrade minor and patch dependency versions with yarn upgrade-interactive (no code changes required)
  • Upgrade react and react-dom to 17.0.1 (no code changes required)
  • Following Webpack's guide for migrating to v5
    • Upgrade webpack-manifest-plugin to 3.0.0
      • Now exports a named WebpackManifestPlugin instead of the default export (see bb40baf)
    • Upgrade webpack to 5.21.2
      • Changed the static files module rule to use Webpack's Asset Modules rather than manually using file-loader (see d129404)
      • Removed file-loader

Upgrade instructions (more info)

Merge upstream changes

First, configure this repo as a remote for your repo (you only need to do this once)

  git remote add template https://github.com/bensmithett/tropical.git

Then fetch & merge the latest changes, resolving any conflicts manually:

git fetch template
git merge template/master

or...

Manually update your code
  • Update .node-version to latest LTS version 14.15.4 (no code changes required)
  • Upgrade minor and patch dependency versions with yarn upgrade-interactive (no code changes required)
  • Upgrade react and react-dom to 17.0.1 with yarn upgrade react@latest react-dom@latest (no code changes required)
  • Following Webpack's guide for migrating to v5
    • Upgrade webpack-manifest-plugin to 3.0.0 with yarn upgrade webpack-manifest-plugin@latest
      • Now exports a named WebpackManifestPlugin instead of the default export (see bb40baf)
    • Upgrade webpack to 5.21.2 with yarn upgrade webpack@latest
      • Change the static files module rule to use Webpack's Asset Modules rather than manually using file-loader (see d129404)
      • Remove file-loader with yarn remove file-loader