[template-compiler] Normalize parse5.Element's sourceCodeLocation field and update it inline #3108
Labels
Up for grabs
Issues that are relatively small, self-contained, and ready for implementation
Description
The template-compiler's
parseElement
routine normalizes the parse5 element's sourceCodeLocation and creates a newparse5.ElementLocation
which is then reused in the rest of the routine.This bug to update the sourceCodeLocation of the original element and look up the location from that. This will avoid passing both the parse5ElmLocation and parse5Elm
lwc/packages/@lwc/template-compiler/src/parser/index.ts
Line 177 in e630ceb
The text was updated successfully, but these errors were encountered: