egoist / egoist/tsup

Question: How to keep `class X {}`, avoid `var X = class {}`?

Open
#616 1 comment 4 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

Input
```js
class Foo {}
export { Foo }
```

Actual Output
```js
var Foo = class {
};
export {
Foo
};
```

Expected Output
```js
class Foo {}
export { Foo }
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.