From 5f0d3a248cc59ba1042df69bae0ca2fe6a5ea9ad Mon Sep 17 00:00:00 2001 From: Tomohiko Ozawa Date: Mon, 19 Jun 2023 17:33:15 +0900 Subject: [PATCH] remove file entry from source map --- src/source-map.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source-map.ts b/src/source-map.ts index 304714b..37c968c 100644 --- a/src/source-map.ts +++ b/src/source-map.ts @@ -3,7 +3,7 @@ import {SourceMapGenerator} from 'source-map' export function createIdentitySourceMap(file: string, source: string) { - const gen = new SourceMapGenerator({ file }); + const gen = new SourceMapGenerator(); const tokens = espree.tokenize(source, { loc: true, ecmaVersion: 'latest' }); tokens.forEach((token: any) => {