From 368ac9b8ab777e625fd4fa040ac016b5e2a9ce50 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 2 Dec 2017 23:33:00 -0500 Subject: [PATCH] fix output --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1ce6595062..ad1b6e255d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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}` + + source.slice(match.index + match[0].length) ); } }