Next.js Discord

Discord Forum

How to Import 3rd party URL into WebWorker?

Unanswered
Minskin posted this in #help-forum
Open in Discord
MinskinOP
I have a app that is trying to using load esbuild into a webworker. This is client side only. I am unable to find ANY solution for this.

1. I can't use <Script> as it's in a webworker.
2. I added and this gives warnings but runs in prod but fails completely in dev and tells me this will be removed shortly.

Bundling this is impractical as it's 22mb has a bunch of internal browser logic that turbopack absolute hates.

  // experimental: {
  //   urlImports: ['https://esm.sh/typescript@5.7.2'],
  // },

0 Replies