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

feat: support wasi by tweaking cfg attributes #6

Merged
merged 1 commit into from Jan 26, 2022

Conversation

zebp
Copy link
Contributor

@zebp zebp commented Jan 25, 2022

Adds support for wasi. Previously the crate could be compiled to wasi, but still relied on wasm-bindgen to check for the current node environment so it could not be used outside of a JS runtime.

I am making this PR to try to get swc, which depends on this crate, to run to wasi but this is a blocking issue. I might not be considering some use case but I'm willing to make any requested changes :)

Copy link
Member

@g-plane g-plane left a comment

Choose a reason for hiding this comment

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

Thanks!

@g-plane g-plane merged commit e6e71a7 into browserslist:main Jan 26, 2022
@g-plane
Copy link
Member

g-plane commented Jan 26, 2022

Does it block SWC? If so, I will release a new version tomorrow.

@zebp zebp deleted the feat/wasi-support branch January 26, 2022 13:52
@zebp
Copy link
Contributor Author

zebp commented Jan 26, 2022

Does it block SWC? If so, I will release a new version tomorrow.

It does, if you could release a new version that'd be awesome!

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.

None yet

2 participants