Skip to content

Commit

Permalink
fix filename is null when transform with post option
Browse files Browse the repository at this point in the history
  • Loading branch information
Eronana committed Sep 5, 2018
1 parent 718fbc4 commit 42ee8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -79,7 +79,7 @@ function iface () {
var target = nodeResolve.sync(tr.name, { basedir: basedir })
var transform = require(target)
}
var src = transform(null, source, { post: true })
var src = transform((deps && deps[0] && deps[0].file) || null, source, { post: true })
if (src) source = src
})
return source
Expand Down

0 comments on commit 42ee8bb

Please sign in to comment.