Skip to content

Fix automatic .wasm file detection with no-modules output #3169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

daxpedda
Copy link
Collaborator

Currently with no-modules output the line document.currentScript.src will always return null, because it only works during processing of the script. This fixes the issue by caching document.currentScript.src beforehand.

Fixes #2502.

Copy link
Collaborator

@Liamolucko Liamolucko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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.

Target no-modules failed to find its .wasm file automatically
2 participants