Buslowicz / twc

TypeScript based, boilerplate-less, Polymer toolbox friendly Polymer Modules
32 stars 1 forks source link

Adding comments before export does not compile properly #116

Closed omar-codesenberg closed 6 years ago

omar-codesenberg commented 6 years ago

If you add a comment in an exported class which does not extend a polymer element and this comment is placed before the export keyword, the compiler does not remove the export keyword when it writes to the .html file.

ie.

//bar
export class Foo {

}

compiles down to:

<script>
  //bar
  export class Foo {}
</script>

The compiled version contains the export keyword when it should be removed.

Buslowicz commented 6 years ago

Fixed by literally adding a single letter :D (+ tests). Published as 0.4.7-rc.