Versions in this module Expand all Collapse all v0 v0.1.8 Jun 22, 2022 v0.1.7 Jun 4, 2022 v0.1.6 Jun 4, 2022 v0.1.5 Jun 4, 2022 v0.1.4 May 19, 2022 v0.1.3 May 16, 2022 v0.1.2 May 15, 2022 v0.1.1 May 15, 2022 v0.1.0 May 14, 2022 v0.0.9 May 2, 2022 v0.0.8 May 2, 2022 v0.0.7 Apr 29, 2022 v0.0.6 Apr 29, 2022 v0.0.5 Apr 28, 2022 v0.0.4 Apr 28, 2022 v0.0.3 Apr 28, 2022 v0.0.2 Apr 27, 2022 v0.0.1 Apr 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)