next.js
0c454dbf - feat: rspack use swc to warn for edge runtime (#80485)

Commit
312 days ago
feat: rspack use swc to warn for edge runtime (#80485) Rspack's decision to avoid parser hooks, I propose discussing alternative approaches to implement code analysis in middleware plugins. A alternative code analysis approach. During the `finishModules` phase, implement a custom warnForEdgeRuntime method via N-API to perform module-level code analysis. Passes tests: 1. test/integration/edge-runtime-module-errors/test/module-imports.test.js 2. test/integration/edge-runtime-with-node.js-apis/test/index.test.ts
Author
Parents
Loading