Skip to content

Commit

Permalink
fix(api.js): bundle now exports clipboard mod, closes #2243 (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Jul 19, 2021
1 parent e48bb3e commit 4f88c3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/api-clipboard-export.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"api": patch
---


`bundle` now exports `clipboard` module so you can `import { clipboard } from "@tauri-apps/api"`.
2 changes: 2 additions & 0 deletions tooling/api/src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import 'regenerator-runtime/runtime'
import * as app from './app'
import * as cli from './cli'
import * as clipboard from './clipboard'
import * as dialog from './dialog'
import * as event from './event'
import * as fs from './fs'
Expand All @@ -24,6 +25,7 @@ const invoke = tauri.invoke
export {
app,
cli,
clipboard,
dialog,
event,
fs,
Expand Down

0 comments on commit 4f88c3f

Please sign in to comment.