-
Notifications
You must be signed in to change notification settings - Fork 0
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
U/edgarivanv/fix false positives and not resolving nonindex files #49
U/edgarivanv/fix false positives and not resolving nonindex files #49
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
* References to symbols from the node api require | ||
* linking to a real instance of node, which means that | ||
* `cargo test` can't link anything | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why'd this module-level comment get deleted?
src/unused_finder/mod.rs
Outdated
} | ||
ResolvedItem::Exported(exported_item) => { | ||
used_items.insert(exported_item.clone()); | ||
.for_each(|(_path, imported_things)| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imported_things imprecise name
…e into u/edgarivanv/fix-false-positives-and-not-resolving-nonindex-files
…s for linxu/windows/darwin releases
Changed validations done to check if item was being unused.
import 'foo'
is being executed.NapiLikeError
since newer versions of rust enforce that forResult::Error
.swc
that simplifies the dependency graph to only useswc_core
andswc_ecmascript
.resolve_ts_import
that marked import paths such as./Foo.base
asResourceImport
instead to the referred file./Foo.base.ts
which is a LocalProjectImport.unused.js
to test the tool on client web, also, added the list of entry points in client web.