Skip to content

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