Skip to content

use new resolve hook api, as current style gives deprecation warning #19

@bwindels

Description

@bwindels

see https://nodejs.org/api/esm.html#hooks, need to figure out how this chaining works, but basically we return the format from resolve, put something like this after calling resolveWithEsBuild:

+    if (resolution?.url && forceESM(global.ImportTrackingConfig, resolution.url)) {
+        resolution.format = "module";
+    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions