const class compilerEs::CommonJs
sys::Obj compilerEs::ModuleSystem compilerEs::CommonJs
CommonJs
- doWriteInclude
-
protected virtual override OutStream doWriteInclude(OutStream out, Str module, Str path)
- ext
-
virtual const override Str ext := "js"
- make
-
new make(File nodeDir)
- moduleDir
-
virtual const override File moduleDir := this.nodeDir.plus(`node_modules/`)
- moduleStart
-
const static Str moduleStart := ...
- moduleType
-
virtual const override Str moduleType := "cjs"
- writeBeginModule
- writeEndModule
- writeExports
-
virtual override OutStream writeExports(OutStream out, Str[] exports)