Skip to content

esm: Make import.meta.resolve(…) take an options argument #31861

@ExE-Boss

Description

@ExE-Boss

require.resolve(…) takes a second optional options argument, instead of a second optional parent string argument.

This differs from what's been implemented in #31032.

import.meta.resolve(…) and require.resolve(…) should both take a string and an options object, instead of one taking two strings and the other taking a string and an options object.


/cc @guybedford

Metadata

Metadata

Assignees

No one assigned

    Labels

    esmIssues and PRs related to the ECMAScript Modules implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions