-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, the parsing only happened after calling “render”. The issue with this is that you lose the original line numbers on errors when something goes wrong. By forcing the parse to happen immediately, you can find the actual invocation of “html” within which the issue lies. The only potential downside to this approach would be a performance hit within our “update” path. This is because we would check whether the “strings” from our tagged template function have been analyzed or not. Checking for their existence in our WeakMap takes some non-zero amount of time. We’re going to go ahead and _try_ this approach and weight the costs against the benefits — it’s easy to revert.
- Loading branch information
1 parent
1199e79
commit c03cf79
Showing
4 changed files
with
50 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters