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

emitting without correct spacing #34

Closed dariajung closed 9 years ago

dariajung commented 9 years ago

instead of emitting as private X(), private methods are being emitted like so: privateX

dariajung commented 9 years ago

Fix: Could be as simple as adding

case ts.SyntaxKind.StaticKeyword: 
      case ts.SyntaxKind.PrivateKeyword: {
        return (node.getText() + ' ');
      }

but there are lots of keywords.

dariajung commented 9 years ago

Fixed with 370532b52acc766addc1eb09b315cc21ca138669