next.js
3738e8ec - Fix react-refresh for transpiled packages (#60563)

Commit
2 years ago
Fix react-refresh for transpiled packages (#60563) ### What We're applying react-refresh to browser layer and inject ESM or CJS helper based on file type. Some package from `trasnpilePackages` might contain CJS browser bundle. And injecting ESM helper breaks them. Actually they don't need to have fast refresh ability since they're in `node_modules`. ### How Skip react-refresh for transpiled packages as they're in node_modules and won't change. Fixes #56487 Closes NEXT-2061
Author
Parents
Loading