diff --git a/src/generators/dom/visitors/EachBlock.js b/src/generators/dom/visitors/EachBlock.js index 77d1014294..aab0d8e3ee 100644 --- a/src/generators/dom/visitors/EachBlock.js +++ b/src/generators/dom/visitors/EachBlock.js @@ -14,8 +14,6 @@ export default function visitEachBlock ( generator, block, state, node ) { const isToplevel = !state.parentNode; - generator.addSourcemapLocations( node.expression ); - const { dependencies, snippet } = generator.contextualise( block, node.expression ); const anchor = block.getUniqueName( `${name}_anchor` ); diff --git a/src/generators/dom/visitors/IfBlock.js b/src/generators/dom/visitors/IfBlock.js index ffdbef5eb7..d9ffbe57f9 100644 --- a/src/generators/dom/visitors/IfBlock.js +++ b/src/generators/dom/visitors/IfBlock.js @@ -2,7 +2,6 @@ import deindent from '../../../utils/deindent.js'; import visit from '../visit.js'; function getConditionsAndBlocks ( generator, block, state, node, _name, i = 0 ) { - generator.addSourcemapLocations( node.expression ); const name = generator.getUniqueName( `${_name}_${i}` ); const conditionsAndBlocks = [{