class compiler::CompilerOutput
sys::Obj compiler::CompilerOutput
CompilerOutput encapsulates the result of a compile. The compiler can output in three modes:
transientPod
: compiles to an in-memory podpodFile
: compile a pod file to the file system, but don't automatically load it.js
: runs through frontend of compiler to build AST and generates JavaScript code (doesn't perform any backend fcode or pod generation)
- cjs
-
Str? cjs
- esm
-
Str? esm
- js
-
Str? js
If
CompilerOutputMode.js
mode, the JavaScript code string. - mode
-
CompilerOutputMode? mode
Mode indicates the type of this output
- podFile
-
File? podFile
If
CompilerOutputMode.podFile
mode, the pod zip file written to disk. - transientPod
-
Pod? transientPod
If
CompilerOutputMode.transientPod
mode, this is loaded pod.