-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptBugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version:
Version 1.9.0-dev.20160614-1.0
Code
const typescript = require("typescript");
const input = `export class Test { }`;
const output = typescript.transpileModule(input,
{
compilerOptions: {
target: "es5",
lib: ["es2015", "dom"],
module: "commonjs",
},
reportDiagnostics: true
}
);
console.log(output.diagnostics[0].messageText);
Expected behavior:
Compiles without error
Actual behavior:
Option 'lib' cannot be specified with option 'noLib'.
Since transpileModule() forces noLib
flag i'd expect it doesn't take account into lib
option
Metadata
Metadata
Assignees
Labels
APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptBugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue