We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The generated JavaScript from the build task adds Windows line-endings by default, it would be nice to be able to choose from "lf", "cr", or "crlf".
Greeter.ts:
class Greeter { constructor(public message: string) { } greet() { return this.message; } } var greeter = new Greeter("Hello world");
Greeter.ts (manual build, then built with grunt-typescript):
@@ -1,11 +1,12 @@ -var Greeter = (function () { - function Greeter(message) { - this.message = message; - } - Greeter.prototype.greet = function () { - return this.message; - }; - return Greeter; -})(); - -var greeter = new Greeter("Hello world"); +var Greeter = (function () {^M + function Greeter(message) {^M + this.message = message;^M + }^M + Greeter.prototype.greet = function () {^M + return this.message;^M + };^M + return Greeter;^M +})();^M +^M +var greeter = new Greeter("Hello world");^M +//# sourceMappingURL=Greeter.js.map^M
The text was updated successfully, but these errors were encountered:
I solved this issue. And I added "newline" option. please try ver 0.2.7
Sorry, something went wrong.
No branches or pull requests
The generated JavaScript from the build task adds Windows line-endings by default, it would be nice to be able to choose from "lf", "cr", or "crlf".
Greeter.ts:
Greeter.ts (manual build, then built with grunt-typescript):
The text was updated successfully, but these errors were encountered: