Skip to content
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

Prebuild worker bundle and import WASM files from same directory as JS wrappers #57

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

ianthomas23
Copy link
Member

These are changes required to ensure the latest code here works in the JupyterLite terminal. Changes are:

  1. Override WASM locateFile to load WASM files from the same directory as their JS wrapper files.
  2. Prebuilding the WebWorker bundle using rspack (webpack would also work).

Whilst doing item 1 I have also chosen to make the wasmBaseUrl option compulsory, as all existing uses set it anyway.

Item 2 is a temporary fix so that the WebWorker works OK in a JupyterLite deployment. It should, and eventually will, be in the terminal extension instead.

After this is merged I will release version 0.0.8 and make the corresponding changes in the terminal extension.

@ianthomas23 ianthomas23 added the enhancement New feature or request label Sep 11, 2024
@ianthomas23 ianthomas23 merged commit c226ca9 into main Sep 11, 2024
4 checks passed
@ianthomas23 ianthomas23 deleted the main-fixes-for-jlite branch September 11, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant