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) { if (processed && processed.code) {
return ( return (
source.slice(0, match.index) + source.slice(0, match.index) +
processed.code + `<${type}>\n${processed.code}</${type}>` +
source.slice(0, match.index + match[0].length) source.slice(match.index + match[0].length)
); );
} }
} }

Loading…
Cancel
Save