Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Sep 24, 2024

The proxyClient needs to jump through a few more hoops here to load the embedded generated JS file which is encoded as a data URL.

This change also fixes the mime type used when we embed JS as a data URL.

The proxyClient needs to jump through a few more hoops here to load
the embedded generated JS file which is encoded as a data URL.

This change also fixes the mime type used when we embed JS as a data
URL.
@sbc100 sbc100 requested a review from kripken September 24, 2024 18:49
// For class modules we decode the data URL and use `eval: true`.
url = Buffer.from(url.split(",")[1], 'base64').toString();
options ||= {}
options.eval = true;
Copy link
Member

Choose a reason for hiding this comment

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

I did not know this was possible...

@sbc100 sbc100 enabled auto-merge (squash) September 24, 2024 19:52
@sbc100 sbc100 merged commit d5fba03 into emscripten-core:main Sep 24, 2024
28 checks passed
@sbc100 sbc100 deleted the node_single_file branch September 24, 2024 19:59
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.

2 participants