Skip to content

Repro ts target issue #249

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

Closed
wants to merge 1 commit into from
Closed

Conversation

lmiller1990
Copy link
Member

@lmiller1990 lmiller1990 commented Jul 2, 2020

If I set my "target": "es6", const vue_1 = require('vue') is added in every component that imports Vue. This causes a problem since you cannot redefine a constant. Each .vue file is processed individually (that's how jest transformers work).

I am not sure why this was not an issue in the past, but it is now in and this reproduction shows it happening. I wonder how to handle this?

@lmiller1990 lmiller1990 changed the base branch from master to next July 2, 2020 12:37
@lmiller1990 lmiller1990 deleted the lachlan/repo-ts-target-issue branch July 29, 2020 09:55
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.

1 participant