Replies: 2 comments
-
|
Hey @kikohs I'm not sure you will be able to bundling down to a single js file as the worker will need a js fie for just itself, and ideally you would want to have some shared resources between the two. It may be possible with a little hacking though. Can I ask why you want to only have a single js file? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your message. I'm trying to integrate PGlite into https://cables.gl. It's a node-based visual framework/editor (online) and also now desktop as an electron app. To be fair, I couldn't package it for the electron version as well. I get errors while loading the different chunks created by webpack. The subtlety is that here I build blocks for others and I don't know in advance what libraries you might put. Each block is an independent micro-api. In cables. I create workers dynamically by injecting the code. It's annoying but it works.. Hope it helps. PGlite looks amazing! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to bundle the library for the web with webworker support and
vectorandlive. I would like to package it into a single JS file that could be hosted on a CDN (or at least a single js that loads the wasm, data and gz).I can't manage to find the right webpack config for it.
index.jspgworker.jsBeta Was this translation helpful? Give feedback.
All reactions