Gemma Blackgemmablack.dev路Nov 17, 2024Node.js: refreshing a module using require.cacheThis is purely in reference to CommonJS modules. TLDR Before I bore you with why I did this, refreshing a module can be done by deleting its reference in the require.cache object. Like so: require('./some-module') // use module delete require.cach...require.cache
Gautam VajaforCodeParrot 10x Dev10xdev.codeparrot.ai路Feb 28, 2024Decrease your build times by 90% with Vite 馃榾Are you a frontend developer on the lookout for methods to streamline your development workflow? Ever felt like you're stuck in a time loop waiting for your project to compile? If so, Vite might just be the game-changer you need. What is Vite? 馃殌 Vit...10 likes路81 readsHMR
Kishan Kumarkishanhitk.hashnode.dev路Feb 24, 2023Enable HMR in Remix CloudflareUPDATE: Since v2.7.0, Remix migrated to Vite as the default compiler. Which means you no longer need to follow this guide to enable HMR as Vite has built-in support for HMR. Hot Module Replacement (HMR) is a game-changing feature that speeds up the ...529 readsRemix
Dhawal Pandyadhawalpandya01.hashnode.dev路Jan 26, 2023Hot Module Replacement (HMR)Hot Module Replacement (HMR) is a feature that allows you to update parts of your application "on the fly" while the application is running, without having to perform a complete refresh of the page. It is often used in development environments to spe...HMR
Anil kumaranilkumarum.hashnode.dev路Dec 7, 2022Easiest way to add HMR in your chrome extensionWhen we try to build Chrome extension,we notice that Chrome doesn't auto-reload our extension. We need to reload our extension and also tab. In popup window, we need to close popup window then re-open window to view change. This is time consuming and...237 readsHMR