Skip to content

Commit 9fc664f

Browse files
authored
Use content.outputFilePath and use pass sourcemap
1 parent 949c6ed commit 9fc664f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function(source, map) {
2121
// source variable. Check API for more details.
2222
creator.create(this.resourcePath, source).then(content => {
2323
// Emit the created content as well
24-
this.emitFile(this.resourcePath + '.d.ts', content.contents || ['']);
24+
this.emitFile(content.outputFilePath, content.contents || [''], map);
2525
content.writeFile().then(_ => {
2626
callback(null, source, map);
2727
});

0 commit comments

Comments
 (0)