Switch build system to Vite (#1444)

Switch Parcel to Vite
This commit is contained in:
Matthew Donoughe
2023-11-05 03:12:03 -08:00
committed by GitHub
parent 09743dcdc4
commit f6d104265a
14 changed files with 959 additions and 4706 deletions
+2 -2
View File
@@ -20,7 +20,7 @@ import {
UpdateImageData,
UpdateOpenDocumentsList,
} from "@graphite/wasm-communication/messages";
import { copyToClipboardFileURL } from "~src/io-managers/clipboard";
import { copyToClipboardFileURL } from "@graphite/io-managers/clipboard";
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function createPortfolioState(editor: Editor) {
@@ -52,7 +52,7 @@ export function createPortfolioState(editor: Editor) {
const filename = url.pathname.split("/").pop() || "Untitled";
const content = await data.text();
editor.instance.openDocumentFile(filename, content);
} catch {
editor.instance.errorDialog("Failed to open document", "The file could not be reached over the internet. You may be offline, or it may be missing.");