Fix Bezier-rs interactive demo page build failure

This commit is contained in:
Keavon Chambers
2023-11-16 15:21:15 -08:00
parent a6ca43bb2d
commit de235e3be1
2 changed files with 6 additions and 4 deletions
@@ -79,10 +79,10 @@ export interface Demo extends HTMLElement {
sliderData: Record<string, number>; sliderData: Record<string, number>;
sliderUnits: Record<string, string | string[]>; sliderUnits: Record<string, string | string[]>;
drawDemo(figure: HTMLElement, mouseLocation?: [number, number]); drawDemo(figure: HTMLElement, mouseLocation?: [number, number]): void;
onMouseDown(event: MouseEvent); onMouseDown(event: MouseEvent): void;
onMouseUp(); onMouseUp(): void;
onMouseMove(event: MouseEvent); onMouseMove(event: MouseEvent): void;
getSliderUnit(sliderValue: number, variable: string): string; getSliderUnit(sliderValue: number, variable: string): string;
} }
@@ -1,3 +1,5 @@
// TODO: Eventually migrate the bundler from Webpack to Vite
const path = require("path"); const path = require("path");
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin"); const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");