Coconstructor
Bun

constructor

vm.SyntheticModule.constructor

Not implemented in Bun

constructor SyntheticModule(
exportNames: string[],
evaluateCallback: (this: SyntheticModule) => void,

Creates a new SyntheticModule instance.

@param exportNames

Array of names that will be exported from the module.

@param evaluateCallback

Called when the module is evaluated.