static-shaker
v0.1.0
Published
Remove code from a file excluding a specific functions and their dependencies
Readme
static-shaker
Remove code from a file excluding a specific functions and their dependencies
How it works
Given a js source file with so many things going on there. We're able to select a single identifier(function, variable or declaration) and static-shaker will remove all other code from the source except for those that contain code our specified identifier depends on.
See it in action
Below is what happens when we want to only maintain a function called start
and its dependencies
License
static-shaker is MIT licensed.