Skip to content

cleiner/svecl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svecl

A single executable to compile and bundle Svelte applications, with support for import maps.

Getting Started

svecl is derived from esbuild, but only implements its build command.

Example usage: svecl js/main.js --import-map=js/importmap.json --sourcemap=inline --outfile=bundle.js

Run with --help or -h for options.

Development

Note: A C++ compiler is required to build and link with the v8go dependency. On Windows you can follow the instructions for MSYS2 as described here: https://github.com/rogchap/v8go#windows

Build: go build ./cmd/...

Run tests: go test ./...

TODOs

  • add support for Svelte compiler options (--svelte-opt=dev:true,key:value ?)