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 authored and iFaxity committed Jul 22, 2023
1 parent 3010c58 commit f5bb178
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 f5bb178

Please sign in to comment.