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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Object-Import Errors #1823

Merged
merged 1 commit into from Jun 15, 2020
Merged

Fix Object-Import Errors #1823

merged 1 commit into from Jun 15, 2020

Commits on Jun 12, 2020

  1. [Fix] order/TypeScript: properly support import = object expressions

    Just like ordinary `import x =` expressions, `export import x =` expressions can come with a number of different module-references.
    Either a require-expression such as `export import fs = require("fs")`, a literal such as `export import Console = console;` or an object-path `export import log = console.log`.
    
    This means, that the `isExport` property merely says whether the `TSImportEqualsDeclaration` has a leading `export`, but not what the `moduleReference` looks like.
    
    ----
    
    This arguably is a semver-minor, but since it should have been included in #1785, I'm calling this a bugfix.
    
    Fixes #1821. Fixes #1808.
    manuth authored and ljharb committed Jun 12, 2020
    Copy the full SHA
    f5d95e8 View commit details
    Browse the repository at this point in the history