Changes coming to webpack in 2021
Blog post from LogRocket
Webpack is a JavaScript module bundler that consolidates various web assets into smaller, manageable files and optimizes code dependencies for efficient loading. With the release of webpack 5 in October 2020, deprecated items were removed, and new features like long-term caching support, real content hashing, and Module Federation were introduced to enhance functionality and collaboration across builds. In 2021, webpack aimed to improve ECMAScript module support, introduce self-executing chunks, and enhance source map performance, along with exploring native support for ESM imports and exports, hinting systems, and WebAssembly integration. Hot Module Replacement (HMR) is set to be advanced to support Module Federation, allowing updates to propagate between builds, potentially speeding up development. These developments are part of an ongoing effort to make webpack more efficient and user-friendly, although the exact roadmap is adaptable to changes in the web development landscape.