Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dead-code-elimiation doesn't remove unused top level code #954

Open
conartist6 opened this issue May 28, 2019 · 0 comments · May be fixed by #956
Open

dead-code-elimiation doesn't remove unused top level code #954

conartist6 opened this issue May 28, 2019 · 0 comments · May be fixed by #956

Comments

@conartist6
Copy link

conartist6 commented May 28, 2019

For unused top level statements and expressions in module sources, dead-code-elimination does nothing, while in fact it is safe to remove them.

actual:

function unused() {
}
class Unused {}
let notReferenced;

expected:

// [empty]
@conartist6 conartist6 changed the title dead-code-elimiation doesn't remove unused top level functions dead-code-elimiation doesn't remove unused top level code May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant