next.js
1bee5b6c - Fix extra swc optimizer applied to node_modules in browser layer (#62051)

Commit
2 years ago
Fix extra swc optimizer applied to node_modules in browser layer (#62051) Disable swc transform optimizer for node_modules in browser layer of app router bundles Fixes #61858 Fixes #60644 Fixes #60920 Fixes #61740 Closes NEXT-2418 In browser there could be not only one runtime, it could have both js worker and browser. In js worker the `typeof window` is not as same as in browser, so disabling the swc optimizer which will replace the code. Leave the condition as it as.
Author
Committer
Parents
Loading