next.js
b08fb216 - Fix instrument bundling as client components (#60984)

Commit
1 year ago
Fix instrument bundling as client components (#60984) ### What When users're using nextjs server API that break the build, and error with incorrect client components usage. Instrument should be treated as server components or server-only build target, instead of being treated as client components. ### How We added a new layer `instrument` for instrument hook bundling, and apply it with the rsc server webpack loaders Fixes #57563 Closes NEXT-2181 Closes NEXT-1994
Author
Parents
Loading