Tagged articles
Hot Module Replacement
19 articles · Page 1 of 1
This article explains what Vite is, distinguishes it from traditional scaffolding tools, details its underlying build‑tool principles, compares Vite with Webpack, and walks through its core architecture, plugin system, hot‑module replacement, and why it offers fast, on‑demand development experiences.
Hot Module ReplacementViteWebpack comparison
0 likes · 24 min read

This article explains how Vite speeds up frontend development by serving unbundled ES modules, using a plugin‑based transform pipeline, performing on‑the‑fly compilation, pre‑bundling dependencies with esbuild, and finally leveraging Rollup for production builds while maintaining consistent behavior across dev and prod environments.
Build ToolsESMFrontend Development
0 likes · 9 min read

Vite accelerates development by serving unbundled ES modules directly to the browser, using a connect‑based dev server that compiles on‑demand, leverages esbuild for fast pre‑bundling of dependencies, generates hash‑based cache queries, and shares plugins with Rollup for consistent production builds.
Build ToolsFrontend DevelopmentHot Module Replacement
0 likes · 9 min read

This article explains webpack's hot module replacement mechanism and presents a series of practical optimizations—including disabling CompressionPlugin, selecting fast sourcemap types, configuring runtimeChunk as single, and using babel-plugin-dynamic-import-node—to reduce hot‑update build time from 12 seconds to around 1 second.
Frontend DevelopmentHot Module ReplacementSourceMap
0 likes · 9 min read

This article explains Webpack 4’s hot module replacement feature, covering the compilation process, dev‑server setup, entry configuration, websocket communication, the role of HotModuleReplacementPlugin, and the detailed steps of detecting changes, downloading updates via JSONP, and applying updated modules in the browser.
Frontend BuildHot Module ReplacementJavaScript
0 likes · 14 min read

This article explores Vite’s evolution and core architecture, detailing how it improves development server startup time, performs dependency pre‑bundling with esbuild, creates the dev server, handles HTML injection, and implements fast hot‑module replacement through WebSocket communication.
ESMFrontend DevelopmentHot Module Replacement
0 likes · 12 min read

This article examines the limitations of bundle‑based tools like Webpack, introduces Vite’s ESM‑based approach, and provides a detailed analysis of Vite’s architecture, hot‑module‑replacement, module transformation, dependency graph, and plugin system, illustrating how it improves development speed and efficiency.
Build ToolsESMFrontend Development
0 likes · 13 min read

This article explains how Vite leverages native ES modules, esbuild pre‑bundling, and a flexible plugin system to provide instant dev‑server startup, fast hot‑module replacement, and efficient dependency handling, contrasting its approach with traditional bundlers like webpack.
Build ToolsES ModulesFrontend Development
0 likes · 17 min read

This article explains what Webpack's Hot Module Replacement (HMR) is, walks through its configuration steps, and dives deep into the underlying mechanisms—including the dev server, socket communication, and HotModuleReplacementPlugin—showing how HMR enables instant, state‑preserving updates during development.
HMRHot Module Replacementdev server
0 likes · 15 min read

This article explains how Vite leverages native ESM, middleware, and a series of plugins to enable fast development and hot module replacement for React projects, covering setup, source code transformation, import analysis, and the @vitejs/plugin-react-refresh workflow.
Build ToolsHot Module ReplacementReact
0 likes · 9 min read


ByteFEJun 16, 2021 · Frontend Development
This article explains the background, basic concepts, workflow, configuration, server‑client communication, runtime mechanics, and manual implementation of Hot Module Replacement (HMR) in Webpack, helping developers preserve application state while developing with live updates.
Frontend DevelopmentHMRHot Module Replacement
0 likes · 14 min read

Vite is a native ES Module‑driven frontend build tool that offers lightning‑fast cold starts, instant hot module replacement, and on‑demand compilation by eliminating bundle steps during development, while still using Rollup for production builds, providing a performance‑focused alternative to Webpack.
ES ModuleFrontend DevelopmentHot Module Replacement
0 likes · 11 min read

This article explains how to enable and configure Hot Module Replacement for the San framework using san-hot-loader, covering both San CLI and manual Webpack setups, the underlying HMR workflow, module detection logic, and the core code that injects runtime updates for components and stores.
Frontend DevelopmentHot Module ReplacementJavaScript
0 likes · 21 min read

This article explains how Vite, built for Vue 3, solves Webpack's slow cold starts, sluggish hot updates, and heavy bundling by leveraging native ES Modules, a lightweight Koa server, and on‑demand compilation, while also comparing Vite with Snowpack.
ES ModulesHot Module ReplacementOn-Demand Compilation
0 likes · 23 min read


WecTeamOct 28, 2020 · Frontend Development
This article dissects the inner workings of webpack-dev-server, covering its command‑line entry point, the Server class initialization, the role of webpack-dev-middleware, websocket communication, hot module replacement logic, and how live‑reload and hot‑reload are orchestrated during development.
Frontend DevelopmentHot Module Replacementdev middleware
0 likes · 23 min read

This article explains why traditional bundlers like Webpack become slower as projects grow, introduces the Bundleless approach that leverages native ESModule loading in browsers, details core techniques and Vite implementation, and shares a real‑world POS case study showing dramatic improvements in startup and HMR performance.
ESModuleFrontend DevelopmentHot Module Replacement
0 likes · 17 min read

This article explains the Bundleless development approach that leverages native browser ESModules to eliminate bundling, delivering dramatically faster startup, O(1) build complexity, near‑instant hot‑module replacement, and practical implementation details using Vite, along with a real‑world POS case study and migration challenges.
ESModuleHot Module ReplacementVite
0 likes · 16 min read

This article explains Vite’s architecture, from its fast cold‑start and native ES‑module development server to its plugin system, build process, handling of Vue single‑file components, CSS preprocessing, and hot‑module replacement, showing how it differs from traditional bundlers like webpack.
Build ToolsES ModulesFrontend Development
0 likes · 21 min read


政采云技术Sep 25, 2019 · Frontend Development
This article explains how Webpack's Hot Module Replacement works, covering its benefits, the build and watch processes, the role of webpack-dev-middleware and webpack-hot-middleware, and provides detailed code examples to illustrate the communication between the server and the browser.
Frontend DevelopmentHMRHot Module Replacement
0 likes · 10 min read
