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

remove swc experimental options #2057

Closed
wants to merge 1 commit into from
Closed

Commits on Sep 7, 2023

  1. remove swc experimental options

    This removes support for keeping import assertions, which were broken in
    swc at some point, and unconditionally transpiled into import
    attributes. (Ie, `import/with` instead of `import/assert`.)
    
    No version of node supports import attributes with this syntax yet, so
    anyone using swc to import json in ESM is out of luck no matter what.
    
    And swc 1.3.83 broke the option that ts-node was using. The position of
    the swc project is that experimental features are not supported, and may
    change in patch versions without warning, making them unsafe to rely on
    (as evidenced here, and the reason why this behavior changed
    unexpectedly in the first place).
    
    Better to just not use experimental swc features, and let it remove
    import assertions rather than transpile them into something that node
    can't run.
    
    Fix: TypeStrong#2056
    isaacs committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    670d0ea View commit details
    Browse the repository at this point in the history