Skip to content

make runtime respect options.path #13

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jcppman
Copy link

@jcppman jcppman commented Jun 19, 2019

This fixes ianjsikes/rust-wasm-webpack-tutorial#7

when using cargo-web's built-in backend, the generated standalone
runtime hardcoded file path as 'xxx.wasm'. It causes error when
the .wasm file is at that location. Thus we use a custom runtime instead to
get the .wasm from the correct location.

@jcppman jcppman force-pushed the fix-custom-path-issue branch 2 times, most recently from 9d2dfe5 to a4d4991 Compare June 19, 2019 08:49
when using cargo-web's built-in backend, the generated standalone
runtime hardcoded file path as 'xxx.wasm'. It causes error when
the .wasm file is at that location. Thus we use a custom runtime instead to
get the .wasm from the correct location.
@jcppman jcppman force-pushed the fix-custom-path-issue branch from a4d4991 to d48f7a3 Compare June 19, 2019 09:04
@germania
Copy link
Collaborator

germania commented Jun 19, 2019 via email

@germania germania requested a review from ianjsikes June 19, 2019 16:50
@germania
Copy link
Collaborator

This adds an eval call, is it possible to avoid that?

@jcppman
Copy link
Author

jcppman commented Jun 20, 2019

I just realized that since it's in a string, we can just put it there directly.

Fixed!

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.

Uncaught TypeError: n(...).initialize is not a function
2 participants