Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"sideEffects": false,
"files": [
"dist",
"dist/**/*.map",
Comment thread
dannyighsu marked this conversation as resolved.
Outdated
"README.md",
"CHANGELOG.md"
],
Expand Down
2 changes: 2 additions & 0 deletions sdk/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ async function build() {
target: 'node',
format: 'esm',
minify: false,
sourcemap: 'external',
external,
naming: '[dir]/index.mjs',
loader: {
Expand All @@ -57,6 +58,7 @@ async function build() {
target: 'node',
format: 'cjs',
minify: false,
sourcemap: 'external',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if the two source maps conflict? Maybe we should just generate one, IDK

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you need both since consumers will be either/or and not both

external,
naming: '[dir]/index.cjs',
define: {
Expand Down
1 change: 1 addition & 0 deletions sdk/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"outDir": "dist",
"strict": true,
"declaration": true,
"declarationMap": true,
"skipLibCheck": true,
"emitDeclarationOnly": true,
"esModuleInterop": true,
Expand Down
Loading