Skip to content

Commit 4f88c3f

Browse files
authored
fix(api.js): bundle now exports clipboard mod, closes #2243 (#2244)
1 parent e48bb3e commit 4f88c3f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changes/api-clipboard-export.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"api": patch
3+
---
4+
5+
6+
`bundle` now exports `clipboard` module so you can `import { clipboard } from "@tauri-apps/api"`.

tooling/api/src/bundle.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import 'regenerator-runtime/runtime'
88
import * as app from './app'
99
import * as cli from './cli'
10+
import * as clipboard from './clipboard'
1011
import * as dialog from './dialog'
1112
import * as event from './event'
1213
import * as fs from './fs'
@@ -24,6 +25,7 @@ const invoke = tauri.invoke
2425
export {
2526
app,
2627
cli,
28+
clipboard,
2729
dialog,
2830
event,
2931
fs,

0 commit comments

Comments
 (0)