Skip to content

Not producing relative sourceMappingUrl's with mapRoot #10612

@agubler

Description

@agubler

TypeScript Version(s): 2.1.0-dev.20160830 / 2.0.0 / 2.0.2

Code

{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es5",
        "noImplicitAny": false,
        "mapRoot": "./_debug",
        "sourceMap": true
    }
}
const example = function(options: { option1: string, options2: any }) {
        //noop
}

export default example;

Running tsc -p .

Expected behavior:

"use strict";
var example = function (options) {
    //noop
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = example;
//# sourceMappingURL=_debug/main.js.map

Actual behavior:

"use strict";
var example = function (options) {
    //noop
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = example;
//# sourceMappingURL=/Users/user1/ts-rel-root/_debug/main.js.map

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions