Skip to content

Commit

Permalink
fix: dynamic import dexie-export-import
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Nov 14, 2024
1 parent 70e3b72 commit 48aea7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/renderer/src/database/db.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import "dexie-export-import"

import type { Transaction } from "dexie"
import Dexie from "dexie"

Expand Down Expand Up @@ -82,6 +80,7 @@ class BrowserDB extends Dexie {
export const browserDB = new BrowserDB()

export const exportDB = async () => {
await import("dexie-export-import")
const blob = await browserDB.export({ prettyJson: true })
const url = URL.createObjectURL(blob)
const a = document.createElement("a")
Expand Down

0 comments on commit 48aea7b

Please sign in to comment.