javascript-externs-generator icon indicating copy to clipboard operation
javascript-externs-generator copied to clipboard

Externs for a Web Worker

Open Zabrane opened this issue 3 years ago • 2 comments

Hi @jmmk

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

Zabrane avatar Nov 20 '20 06:11 Zabrane

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

jmmk avatar Nov 21 '20 05:11 jmmk

@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.

Zabrane avatar Nov 26 '20 21:11 Zabrane