FredKSchott / esm-hmr

a Hot Module Replacement (HMR) API for your ESM-based dev server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HMR bubbling unspecified

LarsDenBakker opened this issue · comments

Currently the expected bubbling behavior is unspecified.

For example in this scenario:

a.js

import './b.js';
import './c.js';
import.meta.hot.accept(); 

b.js

import.meta.hot.accept();

c.js

// nothing

As far as I know in the current implementations of vite and snowpack an edit for c.js will trigger a reload of a.js but an edit of b.js does not trigger a reload ofa.js.