bublejs / bublejs/buble

Comment on first class function removed

Open
#172 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
874
Forks
62
PR merge metrics
No merged PRs in 30d

Description

> 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; };

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with example.js using the shown buble command and inspect output.js. Trace how comments on static class methods are handled during the transformation, then verify that the comment above Example.foo is preserved while the generated output remains valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.