pull/7738/head
Rich Harris 8 years ago
parent 4f05a22cb3
commit d3c254f197

@ -67,8 +67,8 @@ async function replaceTagContents(source, type: 'script' | 'style', preprocessor
if (processed && processed.code) {
return (
source.slice(0, match.index) +
processed.code +
source.slice(0, match.index + match[0].length)
`<${type}>\n${processed.code}</${type}>` +
source.slice(match.index + match[0].length)
);
}
}

Loading…
Cancel
Save