rsnext/test/e2e/app-dir/app-edge
Jiachi Liu 0b261f0919
Remove process auto polyfill in edge runtime (#65751)
### What

Disable auto polyfill for process in edge runtime.

### Why

React uses process.emit behind a typeof guard now. This leads to process
being bundled and process.emit being called which triggers build
warnings since we stub process APIs since they're not supported in Edge
runtime.

There's condition like `"object" === typeof process && "function" ===
typeof process.emit` in the react build now where the 2nd condition is
falsy. Stop polyfilling to skip that condition since it's mainly for
Node.js runtime

Related to #65692
2024-05-15 12:19:47 +02:00
..
app Remove process auto polyfill in edge runtime (#65751) 2024-05-15 12:19:47 +02:00
components fix: next dev with edge runtime on windows (#56502) 2023-10-10 14:03:03 +00:00
pages Add export runtime test for pages and fully remove experimental.runtime (#48630) 2023-04-20 22:37:38 +00:00
app-edge.test.ts Remove process auto polyfill in edge runtime (#65751) 2024-05-15 12:19:47 +02:00