Versions in this module Expand all Collapse all v0 v0.2.8 Jan 28, 2023 v0.2.7 Jan 20, 2023 v0.2.6 Jan 19, 2023 Changes in this version type Map + func Default(log log.Log, svelteCompiler *svelte.Compiler) (*Map, error) v0.2.5 Sep 15, 2022 v0.2.4 Sep 3, 2022 v0.2.3 Jul 23, 2022 v0.2.2 Jul 22, 2022 v0.2.1 Jul 4, 2022 v0.2.0 Jul 2, 2022 v0.1.11 Jun 29, 2022 v0.1.10 Jun 28, 2022 v0.1.9 Jun 26, 2022 Changes in this version + type DOM struct + Map *Map + func (d *DOM) Plugins() []esbuild.Plugin + func (d *DOM) Transform(fromPath, toPath string, code []byte) ([]byte, error) + type File struct + Code []byte + func (f *File) Path() string + type Map struct + DOM *transformer + SSR *transformer + func Load(transformables ...*Transformable) (*Map, error) + func MustLoad(transformables ...*Transformable) *Map + type Platform int + const PlatformAll + const PlatformDOM + const PlatformSSR + type Platforms map[Platform]func(file *File) error + type SSR struct + Map *Map + func (d *SSR) Plugins() []esbuild.Plugin + func (d *SSR) Transform(fromPath, toPath string, code []byte) ([]byte, error) + type Transformable struct + For Platforms + From string + To string + type Transformer interface + Plugins func() (plugins []esbuild.Plugin) + Transform func(fromPath, toPath string, code []byte) ([]byte, error)