angular / ts-minify

A tool to aid minification of Typescript code, using Typescript's type information.
Apache License 2.0
121 stars 7 forks source link

Incorrectly renaming nested object literals #56

Open dariajung opened 9 years ago

dariajung commented 9 years ago
/// <reference path ='../../typings/source-map/source-map.d.ts' />
import SourceMap = require('source-map');

var x: SourceMap.Mapping = {
    original: { line: 0, column: 0 },
    generated: { line: 0, column: 0 },
    source: ''
}

line and column are incorrectly being renamed. They are of type SourceMap.Position.

Some of the work to address this is on branch: https://github.com/angular/ts-minify/tree/nested-obj-literals.