소스 검색

fix sourcemapping so errors show proper stack trace

Dax Raad 1 년 전
부모
커밋
d9a8d2032a
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/opencode/script/build.ts

+ 1 - 1
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`,