diff --git a/light-client-js/esbuild.config.mjs b/light-client-js/esbuild.config.mjs index 96fa20c..3b6af86 100644 --- a/light-client-js/esbuild.config.mjs +++ b/light-client-js/esbuild.config.mjs @@ -10,7 +10,9 @@ await esbuild.build({ entryPoints: ["./src/index.ts"], bundle: true, outdir: "dist", - plugins: [polyfillNode(), inlineWorkerPlugin(), dtsPlugin({ tsconfig })], + plugins: [polyfillNode(), inlineWorkerPlugin({ + format: "iife" + }), dtsPlugin({ tsconfig })], target: [ "esnext" ],