Skip to content

Supporting filtered namespaces on dynamic import #39

Description

@caiolima

On May 2026 plenary, we've got the consensus to add support filtered namespace for this proposal. The spec work is happening on PR #29, and we now need to work on spec text to add the support for dynamic import calls like import[.defer]() The goal of this thread is that we discuss about the interface on how we can get filtered namespaces (i.e namespaces that contains only the exports explicitly requested) for dynamic imports. Some non-exhaustive proposals I remember we discussed are:

import("mod.js",  { filter: ["foo", "bar" ] });
import("mod.js",  { select: ["foo", "bar" ] });
import("mod.js",  { keys: ["foo", "bar" ] }); 

I'd like to hear your thoughts on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions