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

when i depend on others lib in worker #5

Open
npm-ued opened this issue Jun 7, 2018 · 2 comments
Open

when i depend on others lib in worker #5

npm-ued opened this issue Jun 7, 2018 · 2 comments

Comments

@npm-ued
Copy link

npm-ued commented Jun 7, 2018

as the title
when i depend on crypto-js in worker. What should I do?
use importScripts?

@gamalielhere
Copy link

gamalielhere commented Jun 14, 2018

@israelss yeah. Is importScripts supported on this library?
@npm-ued try referencing it inside self in the worker function.

@floydback
Copy link

floydback commented Dec 15, 2018

It seems like importScripts is not supported ;(

I try this code inside worker function:

importScripts('scripts/lib.js')
self.importScripts('scripts/lib.js')

and I get Uncaught SyntaxError: Failed to execute 'importScripts' on 'WorkerGlobalScope'

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