Skip to content

Commit f8154c9

Browse files
authored
Add sourcemap (#345)
1 parent e2082c0 commit f8154c9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

sdk/scripts/build.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ async function build() {
4343
target: 'node',
4444
format: 'esm',
4545
minify: false,
46+
sourcemap: 'linked',
4647
external,
4748
naming: '[dir]/index.mjs',
4849
loader: {
@@ -57,6 +58,7 @@ async function build() {
5758
target: 'node',
5859
format: 'cjs',
5960
minify: false,
61+
sourcemap: 'linked',
6062
external,
6163
naming: '[dir]/index.cjs',
6264
define: {

sdk/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"outDir": "dist",
1010
"strict": true,
1111
"declaration": true,
12+
"declarationMap": true,
1213
"skipLibCheck": true,
1314
"emitDeclarationOnly": true,
1415
"esModuleInterop": true,

0 commit comments

Comments
 (0)