Microsoft/TypeScript

Sourcemap - names array empty for all files

Open

#9627 aperta il 11 lug 2016

Vedi su GitHub
 (30 commenti) (55 reazioni) (0 assegnatari)TypeScript (6726 fork)batch import
Experience EnhancementHelp WantedSuggestion

Metriche repository

Star
 (48.455 star)
Metriche merge PR
 (Merge medio 6g 17h) (9 PR mergiate in 30 g)

Descrizione

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

Guida contributor