Skip to content

Conversation

@nyannyacha
Copy link
Contributor

What kind of change does this PR introduce?

Bug fix

Description

All scripts initialized in the runtime created by old eszip were specified based on the alternative path reported by maybe_entrypoint, not the sanitized virtual path.
These paths can be referenced via import.meta.url, and trying to use this variable to reference specific static files may cause problems.

Because the static files lookup table pointing to the actual specifier of the static file in eszip was also mapped based on sanitized virtual paths, it could not recognize the alternative paths.

This PR adds mapping for alternative paths to the static files lookup table, enabling static files to be referenced properly even in old eszip.

@nyannyacha nyannyacha merged commit ae9b6e3 into develop Aug 7, 2025
5 checks passed
@nyannyacha nyannyacha deleted the ny/old-eszip-static-files branch August 7, 2025 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants