pull/969/head
Rich Harris 7 years ago
parent 69b74d96bc
commit 368ac9b8ab

@ -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