Skip to content

Upgrade to webpack 5 (3rd attempt) - #48105

Merged
maddiedierker merged 7 commits into
stagingfrom
revert-48103-revert-48021-revert-48020-revert-47093-webpack-5-upgrade
Sep 22, 2022
Merged

Upgrade to webpack 5 (3rd attempt)#48105
maddiedierker merged 7 commits into
stagingfrom
revert-48103-revert-48021-revert-48020-revert-47093-webpack-5-upgrade

Conversation

@maddiedierker

@maddiedierker maddiedierker commented Sep 14, 2022

Copy link
Copy Markdown
Contributor

Reverts #48103, re-introducing the Webpack 5 upgrade. Includes the fix in #48113.

Description from original upgrade PR (#47093):


Builds on changes in #41990 and #46108, minus migration to dart-sass since that was shipped in #46235.

Upgrades our apps package from Webpack v4 to v5, along with upgrading related dependencies. See some notes taken throughout the process in this doc.

Most notably, we now have to supply our own Node polyfills. Webpack <= 4 automatically polyfilled Node libraries. With this upgrade, we now have to supply packages for the Node libraries we depend on. See nodePolyfillConfig in apps/webpack.js, webpack resolve.fallback docs, and Webpack 5 Node Polyfills Upgrade Cheatsheet for more details.

Other notable changes in this PR:

  • I had to increase max_old_space_size from 4096 to 5120 (for production build scripts only).
  • Regression tests in Applab/Gamelab ExporterTest.js files get stuck in an infinite loop. The unit tests that cover this functionality pass and I've tested exports in both labs, so I've skipped these tests for now and will revisit in STAR-2399.

@maddiedierker
maddiedierker force-pushed the revert-48103-revert-48021-revert-48020-revert-47093-webpack-5-upgrade branch from 8fc7d38 to 94c3521 Compare September 14, 2022 22:58
Madelyn Kasula added 3 commits September 16, 2022 10:05
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.

1 participant