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

[v1.x] fix(analyzer): ignore type-only imports & exports #433

Merged
merged 4 commits into from
Aug 13, 2021

Conversation

buschtoens
Copy link
Collaborator

Backports #380 to v1.x.

If the TS syntax plugin is not loaded, the following scenarios fail, as the `import type` syntax is not understood:
- `lts-own`
- `release-own`
- `beta-own`
- `canary-own`
The `import type` syntax is only available with `babel@7`, but
`ember-auto-import@1.x` only tests for `babel@6`.

This commit makes the `analyzer` test module run twice: once for
`babel@6` an once for `babel@7`, where the latter has a different babel
plugin configuration and runs the addition `import type` test.
@buschtoens buschtoens merged commit 3ac52ff into v1.x Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant