Use packager's source map to resolve function name and clean up dead code in SP

Reviewed By: bnham

Differential Revision: D3649501

fbshipit-source-id: 62e13633436c645d9b43eb75c39b4ddcf0458eb3
This commit is contained in:
Lukas Piatkowski 2016-08-02 11:10:57 -07:00 committed by Facebook Github Bot 8
parent 066de9d820
commit 350b5a2c48
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class TreeTransformator {
line: tree.lineNumber, line: tree.lineNumber,
column: tree.columnNumber, column: tree.columnNumber,
}); });
tree.functionName = original.name;
tree.scriptId = tree.id; tree.scriptId = tree.id;
tree.url = 'file://' + original.source; tree.url = 'file://' + original.source;
tree.lineNumber = original.line; tree.lineNumber = original.line;