Microsoft/TypeScript

Sourcemap - names array empty for all files

Open

#9,627 opened on 2016年7月11日

GitHub で見る
 (30 comments) (55 reactions) (0 assignees)TypeScript (48,455 stars) (6,726 forks)batch import
Experience EnhancementHelp WantedSuggestion

説明

TypeScript Version: 1.8.34.0 Module System: AMD ECMAScript Version: ECMAScript 5 VS 2015 Update 3

All of my map files have the names array empty. I would expect that to have been populated. This has been an issue with VS2015 with all updates

Code

class HomeIndex {

    someVar: number;

    constructor() {
        this.someVar = 0;
    }

    onLoad = () => { 
    };

    dispose() {
    };

}

export = HomeIndex;

Generated map

{
  "version": 3,
  "file": "Index.js",
  "sourceRoot": "",
  "sources": [ "Index.ts" ],
  "names": [],
  "mappings": ";;IAAA;QAII;YAIA,WAAM,GAAG;YACT,CAAC,CAAC;YAJE,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACrB,CAAC;QAKD,2BAAO,GAAP;QACA,CAAC;;QAEL,gBAAC;IAAD,CAAC,AAdD,IAcC;IAED,OAAS,SAAS,CAAC"
}

Expected behavior: names array should contain values for members and variables Actual behavior: names array empty

コントリビューターガイド