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: map render function to template #152

Merged
merged 4 commits into from
Jan 28, 2019
Merged

Conversation

eddyerburgh
Copy link
Member

@eddyerburgh eddyerburgh commented Jan 27, 2019

  • Map render function to template opening tag
  • Extract codegen logic

This PR is fixes a longstanding bug. Originally we stopped mapping the compiled render function because istanbul was instrumenting this generated line. That caused the coverage report to record an extra branch that would not run. The fix in this PR is to add an istanbul ignore comment above the generated line.

This PR also splits out the processing logic from the code generating logic. The intent is to make it easier for contributors to decide where new logic should be added.

Fixes #147, #32

@eddyerburgh eddyerburgh merged commit 77ed857 into master Jan 28, 2019
@eddyerburgh eddyerburgh deleted the fix-source-map-bug branch January 28, 2019 20:51
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.

Coverage report doesn't show for Vue components that don't have executable JS code
1 participant