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

fix: do not generate empty file when adding ts plugin without router #4374

Merged
merged 1 commit into from
Jul 30, 2019

Conversation

cexbrayat
Copy link
Member

The recent refactoring in #4330 introduced a regression where a Home.vue file was generated if using the TS plugin even without the router plugin. This happened because the result from the ejs rendering was undefined. This fixes the issue by returning an empty string instead, which will not be written.

The recent refactoring in vuejs#4330 introduced a regression where a `Home.vue` file was generated if using the TS plugin even without the router plugin. This happened because the result from the ejs rendering was `undefined`. This fixes the issue by returning an empty string instead, which will not be written.
@haoqunjiang haoqunjiang merged commit 52bae8e into vuejs:dev Jul 30, 2019
@vue-bot
Copy link

vue-bot commented Jul 30, 2019

Hey @cexbrayat, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚

haoqunjiang pushed a commit that referenced this pull request Aug 2, 2019
@haoqunjiang haoqunjiang changed the title fix: do not generate empty file fix: do not generate empty file when adding ts plugin without router Aug 3, 2019
@cexbrayat cexbrayat deleted the fix/router-generation branch August 20, 2019 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants