Skip to content

Commit 0dac529

Browse files
committedFeb 25, 2025·
chore: add browser export
1 parent 29e5671 commit 0dac529

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎build.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ await Bun.build({
1414
// Build the browser version
1515
await Bun.build({
1616
entrypoints: ['src/browser.ts'],
17-
outdir: './dist/browser',
17+
outdir: './dist',
1818
target: 'browser',
1919
plugins: [dts()],
2020
})

‎package.json

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
"types": "./dist/index.d.ts",
2020
"import": "./dist/index.js"
2121
},
22+
"./browser": {
23+
"types": "./dist/browser.d.ts",
24+
"import": "./dist/browser.js"
25+
},
2226
"./*": {
2327
"import": "./dist/*"
2428
}

0 commit comments

Comments
 (0)
Please sign in to comment.