From 7cccff130585e6b4bf6509749c6c294b815a5cc9 Mon Sep 17 00:00:00 2001 From: Milan Hauth Date: Sun, 20 Sep 2020 18:22:44 +0200 Subject: [PATCH] remove hack --- src/compiler/preprocess/index.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/compiler/preprocess/index.ts b/src/compiler/preprocess/index.ts index 357c63603c..5126fb1d13 100644 --- a/src/compiler/preprocess/index.ts +++ b/src/compiler/preprocess/index.ts @@ -214,17 +214,6 @@ export default async function preprocess( sourcemap_list.unshift(res.get_sourcemap()); } - // HACK - // remove `undefined` sources in first sourcemap - // otherwise remapper throws error: - // Error: Transformation map 0 must have exactly one source file. - // Did you specify these with the most recent transformation maps first? - // test: preprocess comments - (firstMap => { - if (firstMap && firstMap.sources) - firstMap.sources = firstMap.sources.filter(Boolean); - })(sourcemap_list[0] as any); - // https://github.com/ampproject/remapping#usage // https://github.com/mozilla/source-map#new-sourcemapconsumerrawsourcemap const map: ReturnType =