Closed ematipico closed 2 days ago
Latest commit: 6546bc43a37bb3769306a07622cf944e346153cd
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Comparing refactor/middleware-file
(6546bc4) with main
(46f6b38)
✅ 6
untouched benchmarks
Changes
This PR refactors our build by removing the necessity of having a file called
middleware.mjs
. We were emittingmiddleware.mjs
in order to have a predictable way to load the middleware file; however, since we started emitting the middleware chunk as a virtual module, we were emitting two files:middleware.mjs
that simply do an export ofonRequest
from the middleware chunk.middleware.mjs
isn't needed anymore, and we directly import the chunk that rollup generates after the build.Testing
This is an internal refactor; existing CI should pass, and no changeset is needed.
Docs
N/A