Skip to content

Commit

Permalink
U/edgarivanv/fix false positives and not resolving nonindex files (#49)
Browse files Browse the repository at this point in the history
Changed validations done to check if item was being unused.
- If an import in the form of `import 'foo'` is being executed.
- Added AsRef<str> implementation for `NapiLikeError` since newer
versions of rust enforce that for `Result::Error`.
- Added new version of `swc` that simplifies the dependency graph to
only use `swc_core` and `swc_ecmascript`.
- Fixed a problem with `resolve_ts_import` that marked import paths such
as `./Foo.base` as `ResourceImport` instead to the referred file
`./Foo.base.ts` which is a LocalProjectImport.
- Added `unused.js` to test the tool on client web, also, added the list
of entry points in client web.
  • Loading branch information
flickyiyo authored Aug 28, 2023
1 parent d8fc2c8 commit 84411f8
Show file tree
Hide file tree
Showing 26 changed files with 1,493 additions and 1,429 deletions.
2 changes: 2 additions & 0 deletions .beachball.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
module.exports = {
branch: "main",
access: "public",
publish: false,
push: true,
};
Loading

0 comments on commit 84411f8

Please sign in to comment.