rsnext/test/e2e/instrumentation-hook
Jiachi Liu b08fb216bf
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
2024-01-24 20:02:53 +01:00
..
general Fix instrument bundling as client components (#60984) 2024-01-24 20:02:53 +01:00
with-async-edge-page Ensure NextBuildContext is only used during build (#60099) 2024-01-02 10:25:52 +01:00
with-async-node-page Ensure NextBuildContext is only used during build (#60099) 2024-01-02 10:25:52 +01:00
with-edge-api Ensure NextBuildContext is only used during build (#60099) 2024-01-02 10:25:52 +01:00
with-edge-page Ensure NextBuildContext is only used during build (#60099) 2024-01-02 10:25:52 +01:00
with-esm-import Ensure NextBuildContext is only used during build (#60099) 2024-01-02 10:25:52 +01:00
with-middleware Ensure NextBuildContext is only used during build (#60099) 2024-01-02 10:25:52 +01:00
with-node-api Ensure NextBuildContext is only used during build (#60099) 2024-01-02 10:25:52 +01:00
with-node-page Ensure NextBuildContext is only used during build (#60099) 2024-01-02 10:25:52 +01:00
instrumentation-hook.test.ts Ensure NextBuildContext is only used during build (#60099) 2024-01-02 10:25:52 +01:00