Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Add basic dead code removal #56

Closed
popeindustries opened this issue Mar 5, 2015 · 1 comment
Closed

Add basic dead code removal #56

popeindustries opened this issue Mar 5, 2015 · 1 comment

Comments

@popeindustries
Copy link
Owner

This will require implementing a full parser pipeline (esprima, or similar), with the goal of removing unreachable code blocks:

// Delete this
if (false) {
  ...
}

The primary use case is after env var substitution (feature flags):

if (process.env.FEATURE) {
  ...
}
@popeindustries
Copy link
Owner Author

enabled via popeindustries/transfigure-babel

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant