Skip to content

Commit

Permalink
fix worker target
Browse files Browse the repository at this point in the history
  • Loading branch information
Officeyutong committed Jan 6, 2025
1 parent e06168f commit 7369ac5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion light-client-js/esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down

0 comments on commit 7369ac5

Please sign in to comment.