Adjective-Object / good-fences-rs-core

8 stars 0 forks source link

Changed logic to find unused exports from sweeping all files #54

Closed flickyiyo closed 9 months ago

flickyiyo commented 10 months ago

Added function to resolve files including their extension using swc's module resolver.

Changed logic in unused-finder to be entry-point aware in order to avoid files being marked as unused when they act as entries for the application.

Added Graph and GraphFile to track used and unused files and the items within them.

Added BFS'like import/export solving for Graph.

TODO: This iteration removes capacity to identify specific exported items prioritizing finding files never imported. TODO: Add recursive solving for export {...} from '...'