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
@@ -22,7 +22,7 @@
width: auto;
height: auto;
+ .image-label {
+ .image-label.image-label {
margin-left: 8px;
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
import { type Editor } from "@graphite/wasm-communication/editor";
import { TriggerTextCopy } from "@graphite/wasm-communication/messages";
import { imageToPNG } from "~src/utility-functions/rasterization";
import { imageToPNG } from "@graphite/utility-functions/rasterization";
export function createClipboardManager(editor: Editor): void {
// Subscribe to process backend event
+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.");
+2
View File
@@ -0,0 +1,2 @@
/// <reference types="svelte" />
/// <reference types="vite/client" />