Fix file-saver CommonJS error

This commit is contained in:
Tamás Kádár 2024-03-15 13:53:12 +00:00
parent fc3938701e
commit 8a5f667ff6

View File

@ -3,7 +3,8 @@
</script> </script>
<script lang="ts"> <script lang="ts">
import { saveAs } from 'file-saver' import pkg from 'file-saver'
const { saveAs } = pkg
import prettyBytes from 'pretty-bytes' import prettyBytes from 'pretty-bytes'
import { t } from 'svelte-intl-precompile' import { t } from 'svelte-intl-precompile'