Switch build system to Vite (#1444)

Switch Parcel to Vite
This commit is contained in:
Matthew Donoughe 2023-11-05 06:12:03 -05:00 committed by GitHub
parent 09743dcdc4
commit f6d104265a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 959 additions and 4706 deletions

View file

@ -22,7 +22,7 @@
width: auto;
height: auto;
+ .image-label {
+ .image-label.image-label {
margin-left: 8px;
}
}

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

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
frontend/src/vite-env.d.ts vendored Normal file
View file

@ -0,0 +1,2 @@
/// <reference types="svelte" />
/// <reference types="vite/client" />