Bun

interface

vm.ModuleRequest

interface ModuleRequest

A ModuleRequest represents the request to import a module with given import attributes and phase.

  • attributes: ImportAttributes

    The "with" value passed to the WithClause in a ImportDeclaration, or an empty object if no value was provided.

  • phase: ImportPhase

    The phase of the requested module ("source" or "evaluation").

  • specifier: string

    The specifier of the requested module.