FredKSchott / esm-hmr

a Hot Module Replacement (HMR) API for your ESM-based dev server.
MIT License
413 stars 11 forks source link

HMR bubbling unspecified #20

Open LarsDenBakker opened 3 years ago

LarsDenBakker commented 3 years ago

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.