bublejs / buble

https://buble.surge.sh
MIT License
871 stars 67 forks source link

Comment on first class function removed #172

Open hectorgrebbell opened 6 years ago

hectorgrebbell commented 6 years ago
> buble --version
> Bublé version 0.19.6

example.js

class Example {
  /**
   * This comment gets removed
   */
  static foo() { return null; }

  /**
   * This one doesn't
   */
   static bar() { return null; }
}

Run -

> buble example.js --output output.js

output.js

var Example = function Example () {};

Example.foo = function foo () { return null; };

/**
 * This one doesn't
 */
 Example.bar = function bar () { return null; };
hectorgrebbell commented 6 years ago

Occurs with non-static functions too