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

Browserslist wasm with web interface #4

Closed
le0pard opened this issue Dec 8, 2021 · 2 comments
Closed

Browserslist wasm with web interface #4

le0pard opened this issue Dec 8, 2021 · 2 comments

Comments

@le0pard
Copy link

le0pard commented Dec 8, 2021

Hello.

I am have idea to build browserslist wasm with web interface, which will work even offline (by using service worker). I found your project and I want to thanks for great job.

I am start build wasm module based on your library, but now find out you also doing some work with it too (based on commits). I decided to ask, maybe you have similar idea and in this case I don't need waste time on this. Or maybe you working on the wasm module for some different needs (maybe it will be published as npm package)?

P.S. Big thanks for code. I did try to load rust was module, but looks like it return names only for firefox browsers:

  import init, {browserslist} from './../browserslist-wasm/pkg'

  init().then(() => {
    console.log(browserslist('>1%, Firefox ESR, not dead, not ie 11, not op_mini all'))
  })

I uploaded code here (if you want check yourself): https://github.com/le0pard/browserlist

Screenshot 2021-12-09 at 01 01 21

@g-plane
Copy link
Member

g-plane commented Dec 9, 2021

I've tested based on the latest commit, not the 0.4.0 version, and I can't reproduce it, but maybe there're some fixes between the released version and the latest commit. You can try it again once I release new version and provide feedback if it still doesn't work.

Currently I don't have plans on publishing WebAssembly build to npm.

@le0pard
Copy link
Author

le0pard commented Dec 9, 2021

@g-plane thanks, I will try HEAD to build wasm module. And thanks for information

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

2 participants