Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Externs for a Web Worker #42

Open
Zabrane opened this issue Nov 20, 2020 · 2 comments
Open

Externs for a Web Worker #42

Zabrane opened this issue Nov 20, 2020 · 2 comments

Comments

@Zabrane
Copy link

Zabrane commented Nov 20, 2020

Hi @jmmk

Is there a way to generate externs for a Web Worker ?

@jmmk
Copy link
Owner

jmmk commented Nov 21, 2020

I have never personally used Web Workers. Does it break when using advanced compilation?

l see in the google closure code they have some externs written: https://github.com/google/closure-compiler/blob/master/externs/browser/html5.js#L1438. I don't know if these are included by default, but if not you may be able to copy what you need into your own project

I would also recommend looking at shadow-cljs web worker support: https://shadow-cljs.github.io/docs/UsersGuide.html#_web_workers

@Zabrane
Copy link
Author

Zabrane commented Nov 26, 2020

@jmmk Thanks for the pointers and the ideas ... but i still couldn't solve my issue.
I created a detailed example here. I would appreciate if you can look at it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants