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

Bindings/Commands not compatible with the browser #95

Open
syrusakbary opened this issue Nov 18, 2022 · 3 comments
Open

Bindings/Commands not compatible with the browser #95

syrusakbary opened this issue Nov 18, 2022 · 3 comments

Comments

@syrusakbary
Copy link
Member

Right now we are using await fs.readFile for reading the modules content. However, that API will never work in a browser.
We need to move back to the new URL(base, imports.meta....) to make sure the code is usable in both the browser and servers

@syrusakbary syrusakbary changed the title Right now we Bindings/Commands not compatible with the browser Nov 18, 2022
@Michael-F-Bryan
Copy link
Contributor

Yeah, I initially tried that in #89 but apparently you can't use imports.meta in CommonJS modules 😞

@SadraMoh
Copy link

Is this issue planned to be solved?
Do you recommend a work-around?

@Michael-F-Bryan
Copy link
Contributor

@SadraMoh sorry, I don't believe there is a workaround for this - you would need to fix the underlying code. Unfortunately, I no longer work at Wasmer and don't believe this project is being actively worked on by the Wasmer team.

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

No branches or pull requests

3 participants