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

Import to web worker #5

Closed
XBDRX opened this issue Aug 10, 2020 · 2 comments
Closed

Import to web worker #5

XBDRX opened this issue Aug 10, 2020 · 2 comments

Comments

@XBDRX
Copy link

XBDRX commented Aug 10, 2020

Have you tried to import the wasm to a webworker? I'm looking into that at the moment. I'm new to Emscripten and using Rollup instead of Webpack.

I'm happy to submit a PR once I figure it out but wanted to check if you'd already tried & rejected the idea, or could alert me to any potential problems you've encountered.

@insane-jo
Copy link
Owner

Hello, @XBDRX. Yes, I have few projects with talib-wasm in webworkers. But I use webpack instead of rollup.

You can see webpack config example in this commit. And there browser example call. Take a look on externals part in config, may be that will help you.

@insane-jo
Copy link
Owner

I'll close issue. If you have questions - fell free to reopen it

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