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; };
example.js
Run -
output.js