You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[components] Expose the worker in a specific file instead of inlining it? #15
changed the title [-][components] Expose the worker in a specific file instead of inlining it[/-][+][components] Expose the worker in a specific file instead of inlining it?[/+]on Nov 7, 2024
changed the title [-][components] Expose the worker in a specific file instead of inlining it?[/-][+][utils] Expose the worker in a specific file instead of inlining it?[/+]on Nov 20, 2024
changed the title [-][utils] Expose the worker in a specific file instead of inlining it?[/-][+][components] Expose the worker in a specific file instead of inlining it?[/+]on Nov 25, 2024
Also (unrelated): should we look at https://github.com/GoogleChromeLabs/comlink? It removes the need to use postMessage... Not sure if it's a good idea to add this extra-layer though.
Activity
[-][components] Expose the worker in a specific file instead of inlining it[/-][+][components] Expose the worker in a specific file instead of inlining it?[/+]severo commentedon Nov 7, 2024
refs:
vitejs/vite#15547
vitejs/vite#7352
[-][components] Expose the worker in a specific file instead of inlining it?[/-][+][utils] Expose the worker in a specific file instead of inlining it?[/+]severo commentedon Nov 20, 2024
Also look at how it's handled in other libraries:
[-][utils] Expose the worker in a specific file instead of inlining it?[/-][+][components] Expose the worker in a specific file instead of inlining it?[/+]severo commentedon Nov 26, 2024
Also see https://github.com/surma/rollup-plugin-off-main-thread (seen in https://www.npmjs.com/package/microbundle#building-module-workers), in particular look at the gist which shows the result:
https://gist.github.com/surma/a02db7b53eb3e7870bf539b906ff6ff6
Also (unrelated): should we look at https://github.com/GoogleChromeLabs/comlink? It removes the need to use postMessage... Not sure if it's a good idea to add this extra-layer though.
severo commentedon Aug 4, 2025
I tried here: #289
and reverted here: #300