Bun

interface

module.default.LoadHookContext

interface LoadHookContext

  • conditions: string[]

    Export conditions of the relevant package.json

  • format: undefined | null | string

    The format optionally supplied by the resolve hook chain (can be an intermediary value).

  • importAttributes: ImportAttributes

    An object whose key-value pairs represent the assertions for the module to import