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

Add support for multitype imports, object literals, and object literals with aliases #48

Open
traceyyoshima opened this issue May 25, 2023 · 0 comments

Comments

@traceyyoshima
Copy link
Contributor

Add LST elements to support the following imports:

    @Test
    void importObjectLiteral() {
        rewriteRun(
          javaScript(
            """
              import { First , Second , Third } from 'target';
              """
          )
        );
    }

    @Test
    void mixedTypes() {
        rewriteRun(
          javaScript(
            """
              import nameA , { First , Second } from 'targetA';
              """
          )
        );
    }

    @Test
    void multiAlias() {
        rewriteRun(
          javaScript(
            """
              import { FormData as FormDataPolyfill , Blob as BlobPolyfill , File as FilePolyfill } from 'formdata-node'
              """
          )
        );
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

2 participants