From 453ef84893a99f23196f4eca1b7a4d87d69bfb20 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 27 Feb 2017 16:20:21 -0500 Subject: [PATCH] oops --- src/generators/shared/processCss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generators/shared/processCss.js b/src/generators/shared/processCss.js index 6adb8660af..bb0012e990 100644 --- a/src/generators/shared/processCss.js +++ b/src/generators/shared/processCss.js @@ -46,7 +46,7 @@ export default function processCss ( parsed, code ) { // remove comments. TODO would be nice if this was exposed in css-tree let match; while ( match = commentsPattern.exec( css ) ) { - const start = match.index; + const start = match.index + offset; const end = start + match[0].length; code.remove( start, end );