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

Preserve some require statements #174

@Rich-Harris

Description

@Rich-Harris

Occasionally it's necessary to keep a particular require statement so that it executes at runtime rather than being converted into an import. It's almost always a bad sign, but sometimes it's unavoidable.

Solution: allow IDs to be excluded from the transformation, and when that option is used, don't rewrite require as commonjsHelpers.commonjsRequire (which throws)

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