fix(plugin-legacy): Restore guessable polyfill id (fix #6097) #6208
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.
Description
The name of the polyfill file is determined by a hardcoded string.
Some packages based on this plugin rely on this predefined name.
This name was changed in 3127219
to prevent resolving files which don't exist. This commit changes
that behaviour to restore the predefined name.
Closes #6097
Additional context
I wanted to write a proper test for this but I wasn't sure where to put this. So if anyone can give me some guidelines I could spend some time on that.
Next to this, we are a bit doubting if this was a typo or an intended change as discussed in ElMassimo/vite_ruby#156 and nystudio107/craft-vite#20.
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).