Supports WebWorker using comlink #1110
yukukotani
started this conversation in
Ideas
Replies: 2 comments
-
@FredKSchott I'd like to ask your opinion! I think this proposal is not web standard and shouldn't be included in snowpack core. To realize this proposal as a plugin, we need to extend current plugin architecture to generate |
Beta Was this translation helpful? Give feedback.
0 replies
-
I've just found #1122. This seems to be a good solution! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A proposal to support WebWorker using comlink. This is inspired by singleton mode of comlink-loader.
Maybe we can implement this as a plugin, but i don't know how to generate
proxy.js
in plugin. It seems thatload
function can returns only one file for each extensions, so I think generating both*.worker.js
and*.worker.proxy.js
is impossible in current plugin architecture.Example
Source
calc.worker.js
main.js
Dist
calc.worker.js
calc.worker.proxy.js
main.js
Beta Was this translation helpful? Give feedback.
All reactions