A music player that connects to your cloud/distributed storage.

chore: optimise js dist size

Changed files
+6 -6
src
Javascript
+1 -1
src/Javascript/Brain/index.ts
··· 4 4 // 5 5 // This worker is responsible for everything non-UI. 6 6 7 - import { } from "../index.d" 7 + import type { } from "../index.d" 8 8 9 9 // @ts-ignore 10 10 import * as TaskPort from "elm-taskport"
+5 -5
src/Javascript/index.ts
··· 4 4 // The bit where we launch the Elm app, 5 5 // and connect the other bits to it. 6 6 7 - import { } from "./index.d" 8 - 9 7 import "tocca" 10 8 11 9 import type { Program as OddProgram } from "@oddjs/odd" 10 + import type { } from "./index.d" 12 11 13 12 import { debounce } from "throttle-debounce" 14 - import { saveAs } from "file-saver" 15 - import JSZip from "jszip" 16 13 17 14 import * as audioEngine from "./audio-engine" 18 15 import { db, fileExtension, ODD_CONFIG } from "./common" ··· 597 594 // Downloading 598 595 // ----------- 599 596 600 - function downloadTracks(group) { 597 + async function downloadTracks(group) { 598 + const { saveAs } = await import("file-saver").then(a => a.default) 599 + const JSZip = await import("jszip").then(a => a.default) 600 + 601 601 const zip = new JSZip() 602 602 const folder = zip.folder("Diffuse - " + group.name) 603 603 if (!folder) throw new Error("Failed to create ZIP file")