type

Esm

src const class Esm : ModuleSystem

Esm

constructors

fields

methods

Slot Details

doWriteInclude

src protected virtual override OutStream doWriteInclude(OutStream out, Str module, Str path)

ext

src virtual const override Str ext := "js"

make

src new make(File nodeDir)

moduleDir

src virtual const override File moduleDir := this.nodeDir.plus(`esm/`)

moduleType

src virtual const override Str moduleType := "esm"

writeExports

src virtual override OutStream writeExports(OutStream out, Str[] exports)

writePackageJson

src virtual override Void writePackageJson(Str:Obj? json)