# Upgrading Webpack 4 -\> 5

DevFeed: [Upgrading Webpack 4 -\> 5](<https://devfeed.tech/articles/upgrading-webpack-4-5-15937.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/upgrading-webpack-4-to-5>)

Author: Hiroki Osame

Published: 2021-08-18T23:00:00Z

Content type: tutorial

Language: en

Sources: [Square Corner Blog RSS Feed](<https://devfeed.tech/sources/square-corner-blog-rss-feed.md>)

Topics: [Webpack](<https://devfeed.tech/topics/webpack.md>), [build times](<https://devfeed.tech/topics/build-times.md>), [Caching](<https://devfeed.tech/topics/caching.md>), [migration](<https://devfeed.tech/topics/migration.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [build-times](<https://devfeed.tech/tags/build-times.md>), [caching](<https://devfeed.tech/tags/caching.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [migration-guide](<https://devfeed.tech/tags/migration-guide.md>), [webpack](<https://devfeed.tech/tags/webpack.md>)

## AI overview

Square's Ecommerce Performance team describes upgrading its largest Ecommerce codebase from Webpack 4.46.0 to Webpack 5.3.7. Following the migration guide, they achieved about a 30% bundle-size reduction, faster development builds through persistent caching, stricter checks, and typed Webpack code.

## Source excerpt

Smaller bundles, faster build times, stricter checks, and fully typed