Skip to content

Differentiate between dynamic and static imports in loader hooks #204

Open
@thetutlage

Description

@thetutlage

We have a very specific use-case for ESM loader hooks that we are using here with https://github.com/Julien-R44/hot-hook

hot-hook is an ESM loader that enables HMR for Node.js apps without performing any bundling or static analysis of the code.

However, hot-hook can only work with dynamic imports and hence it becomes super crictical for us to differentiate between static and dynamic imports.

Since, loader hooks are under active development, we thought to share our use-case and see if it makes broader sense for Node.js to support this.

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