Build creates and registers the JavaScript module in the given context The module will be available for import in JavaScript code ValueSpec entries are captured by shallow snapshot. Do not mutate pointer-based ValueSpec implementations after Build, or module initialization may observe changes. Do no
(ctx *Context)
| 73 | // ValueSpec implementations after Build, or module initialization may observe changes. |
| 74 | // Do not modify the state of passed spec objects after Build. |
| 75 | func (mb *ModuleBuilder) Build(ctx *Context) error { |
| 76 | return createModule(ctx, mb) |
| 77 | } |
| 78 | |
| 79 | // ============================================================================= |
| 80 | // MODULE CREATION IMPLEMENTATION |