next.js
c1f34629 - Turbopack Build: Optimize instrumentation hook generation (#77832)

Commit
1 year ago
Turbopack Build: Optimize instrumentation hook generation (#77832) ## For Maintainers ### What? - Add `compiled in` for middleware and instrumentation in Turbopack dev. - Fixed a bug where instrumentation.js was being compiled like a page file, local testing moves bootup from 2.5s to 700ms when you have a instrumentation file. ### How? - Added early returns in `hot-reloader-turbopack.ts` for middleware and instrumentation paths when there's no route definition, those cases are handled separately already. - Added build status indicators in `turbopack-utils.ts` for middleware and instrumentation using `startBuilding` and `finishBuilding` hooks - Added proper naming for Node.js and Edge instrumentation in the build status
Author
Parents
Loading