Repository navigation
Conversation
|
@ichiken26 is attempting to deploy a commit to the Nitro Team on Vercel. A member of the Team first needs to authorize it. |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
#40
❓ Type of change
📚 Description
This PR adds a regression test for #40.
As described in my previous investigation, the reported issue has already been resolved on the main branch.
This PR adds test coverage to prevent the issue from recurring without changing the existing implementation.
Regression test
The test verifies that:
cloudflare-modulepreset is built in development mode./index.mjsand/index.mjs.mapare not included as public asset keys in the generated bundle.Steps to reproduce
The following steps reproduce the original issue on Nitro v2.13.6 and verify the behavior at commit
ba32ed7.1. Reproduce the issue on v2.13.6
git clone https://gist.github.com/804618211528d1712c9fac5ea56df31a.git nitro-repro cd nitro-repro npm install --save-exact nitropack@2.13.6 npm ls nitropack npm run repro2. Build and package Nitro from source
3. Verify the behavior after the fix
cd ../nitro-repro npm install ../nitro-v2/nitropack-2.14.0.tgz npm ls nitropack rm -rf .nitro npm run reproVerification results
Before the fix, the bundle size increases with each rebuild. After the fix, the bundle size remains unchanged across all eight rebuilds.
The regression test guards against this behavior recurring.
📝 Checklist
No documentation changes are required, as this PR only adds a regression test.