Skip to content
This repository was archived by the owner on Aug 17, 2022. It is now read-only.

Why are the core module exports completely inaccessible? #75

Open
@surma

Description

@surma

I am wondering why the explainer currently says that the core module exports are completely inaccessible unless the host doesn't have support for interface types or exports are explicitely re-exported. I can't follow why this restrictive approach is desirable. Can someone fill me in on the reasoning?

I admit that I don't have strong use-cases right now, but I feel like there might be situations where skipping the adapter code could be desirable for performance or monkey-patching purposes.

I'd love to somehow allow developers to access the core module exports if necessary, maybe via something like instance.coreExports or similar.

(cc @RReverser)

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