Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix input.js file entries in source maps
pass inputFilename option to `transformAst`
  • Loading branch information
pirxpilot committed Aug 21, 2018
commit 73c26868a755096f74ef0f17a9f73ec39a8c92a8
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ function createStream (opts) {
let ast
const string = transformAst(source, {
locations: true,
ecmaVersion: 9
ecmaVersion: 9,
inputFilename: file
}, (node) => {
if (node.type === 'Program') ast = node
})
Expand Down