Skip to content

Commit

Permalink
fix: Remove file entry from source map (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
kota65535 committed Jun 19, 2023
1 parent 50971e9 commit 118ecd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/source-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 118ecd5

Please sign in to comment.