Skip to content

const injected in runtime code #297

Closed
@Donov4n

Description

@Donov4n

Thanks for this super cool project!

In RefreshModule.runtime.js, const are injected in runtime code and will not be transpiled (since it's a loader injected code).

This is critical in old browser that do not support const in strict mode for example.

Elsewhere in the codebase i've seen a supportsConst method that seems to handle this specific case, maybe the code injected by RefreshModule.runtime.jsshould do the same.

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