next.js
12164224 - fix: Mark file as ESM if it has an export from `auto-cjs` pass (#60216)

Commit
2 years ago
fix: Mark file as ESM if it has an export from `auto-cjs` pass (#60216) ### What? Improve `auto-cjs` pass to consider `export` statements. ### Why? The previous code caused some problems. ### How? Fixes #60197 Closes PACK-2195 --------- Co-authored-by: Jiachi Liu <inbox@huozhi.im>
Author
Parents
Loading