-
Notifications
You must be signed in to change notification settings - Fork 2
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
Cannot find module 'ws' from '/home/fabio/devel/require-emscripten/test' #1
Comments
Having the same issue while bundling emscripten modules with browserify. I used the --ignore-missing option to workaround https://github.com/substack/node-browserify#usage . |
Documented it in 32a55b3. Thank you so much for the pointer! |
You're welcome, on my side, i borrowed you this snippet ;) https://github.com/nfroidure/ttf2woff2/blob/master/jssrc/post.js |
Soon it won't be necessary, I pushed it upstream into emscripten ;) emscripten-core/emscripten#3426 |
👍 |
Emscripten's default output WILL try to require the excellent 'ws' module in some cases. However, browserify doesn't see the conditions outside it and tries to inline it all the time.
(I just rhymed)
The text was updated successfully, but these errors were encountered: