Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying options with sucrase/register and related tools #813

Merged
merged 1 commit into from
Jul 19, 2023

Commits on Jul 18, 2023

  1. Allow specifying options with sucrase/register and related tools

    Fixes #792
    
    This PR adds a new environment variable SUCRASE_OPTIONS that works with the
    require hook and other tools that are based on the require hook (`sucrase-node`
    and programmatically registering a hook). Its format is simply a JSON string
    that is parsed and merged with the usual options. Hopefully this will be rare,
    especially after a semver-major change to better defaults, but it's important
    for some cases.
    alangpierce committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    1553ce5 View commit details
    Browse the repository at this point in the history