Generated modules
We strive to make the generated module as simple as possible while maininting all the behavior from the original code.
Sometimes it is impossible to identify whether some edge cases will happen or not, so the generated code might be more complicated than the original code.
Simple values
Simple values that can fully inspected are serialized with their normal JS syntax. Those include:
- Strings
- Numbers
- Plain objects without nesting
- Arrays without nesting
- Booleans
BigInt
s- Symbols
For example the following module declaration:
Generates the following module:
Nested arrays and objects
WIP
Circular values
WIP
Simple functions
WIP
Classes
WIP
Instances
WIP
Capturing functions
WIP