GCodePreview with Svelte + Vite Running the example cd svelte-demo npm install npm run dev Svelte component Using the example Svelte component is a simple as: <script> import GCodePreview from './lib/GCodePreview.svelte'; </script> <GCodePreview src={'benchy.gcode'} />