Browse Source

fix sourcemapping so errors show proper stack trace

Dax Raad 9 tháng trước cách đây
mục cha
commit
d9a8d2032a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 $`tar -xf ../../node_modules/${watcher.replace("@parcel/", "parcel-")}-*.tgz -C ../../node_modules/${watcher} --strip-components=1`
 
 
   await Bun.build({
   await Bun.build({
-    sourcemap: true,
+    sourcemap: "external",
     compile: {
     compile: {
       target: `bun-${os}-${arch}` as any,
       target: `bun-${os}-${arch}` as any,
       outfile: `dist/${name}/bin/opencode`,
       outfile: `dist/${name}/bin/opencode`,