Tag

webpack5

1 views collected around this technical thread.

Goodme Frontend Team
Goodme Frontend Team
Jan 13, 2025 · Frontend Development

Why Upgrading to Webpack 5 Breaks process.env and How to Fix It

This article recounts a production white‑screen caused by missing node polyfills after upgrading to webpack 5, explains how the undefined process.env variables triggered the crash, and shows how to diagnose and resolve the issue using DefinePlugin or a polyfill plugin.

DefinePluginWebpackfrontend debugging
0 likes · 6 min read
Why Upgrading to Webpack 5 Breaks process.env and How to Fix It
ByteFE
ByteFE
Feb 1, 2021 · Frontend Development

Migrating to Webpack 5: Team Practices, Pitfalls, and New Features

This article details the motivations behind Webpack 5, outlines a step‑by‑step migration workflow—including preparation, dependency upgrades, common pitfalls, and new build‑time and runtime capabilities such as Asset Modules, filesystem caching, WebAssembly, Web Workers, improved long‑term caching and top‑level await—while providing performance comparisons and practical code snippets.

WebAssemblyasset modulescaching
0 likes · 22 min read
Migrating to Webpack 5: Team Practices, Pitfalls, and New Features