Skip to content

The open source coding agent.

TypeScript

fix sourcemapping so errors show proper stack trace

Dax Raadd9a8d2032a50
diff --git a/packages/opencode/script/build.ts b/packages/opencode/script/build.ts
index 80255c4a892..feb91e09bce 100755
--- a/packages/opencode/script/build.ts
+++ b/packages/opencode/script/build.ts
@@ -40,7 +40,7 @@ for (const [os, arch] of targets) {
await $`tar -xf ../../node_modules/${watcher.replace("@parcel/", "parcel-")}-*.tgz -C ../../node_modules/${watcher} --strip-components=1`
await Bun.build({
- sourcemap: true,
+ sourcemap: "external",
compile: {
target: `bun-${os}-${arch}` as any,
outfile: `dist/${name}/bin/opencode`,