codesandbox / codesandbox-client

An online IDE for rapid web development
https://codesandbox.io
Other
13.05k stars 2.27k forks source link

Hot Module Reloading not working with Named export #6143

Open TheSTL opened 3 years ago

TheSTL commented 3 years ago

I'm using named import in ./App.js to import a function that console some value. When I edit that function, changes are not getting reflected. But if I use default export it's working fine.

With named import: https://codesandbox.io/s/react-forked-3hnx8?file=/App.js with default import: https://codesandbox.io/s/react-forked-kb3zs?file=/App.js

alexnm commented 3 years ago

looks like a problem in the bundler @CompuIves @DeMoorJasper. I remember something similar a while ago happening in sandpack as well