Comments (15)
I've got this working on a large project but it's reporting 90% of files as dead, while I know that they're included. This is using deadfile ./src/index.tsx
from deadfile.
Using deadfile 1.2.2 with a React typescript codebase I had the same issue as simonv3
598 total files found!
595 dead files found!
from deadfile.
Happy to report that our large project with ~560 files is now finishing
from deadfile.
/summon @M-Izadmehr
from deadfile.
Not sure what the deal is, I even used the cli option that narrows it down to directory. I pointed it to a directory with 3 .tsx file (within a large project) and still stuck. The node process sucks up all my CPU processing power and my macbook sounds like it's about to take off.
from deadfile.
Thanks a lot for taking the time and reporting this issue:)
I actually tested this library on a super big library (over 200,000 lines of code), however, to be honest, I mostly checked with javascript, I guess this issue is only with typescript projects, I will try to look into this and resolve this.
Even if it requires more process, it should not block the main process.
from deadfile.
Hi
Same issue for me, in a javascript project (and I only test javascript, there is nothing else there).
I tried to mark only the specific directory and the index.js file, but nothing worked. It starts hanging at the "220 imported assets found." stage.
from deadfile.
Same here :(
✔ 1540 total assets found in base directory.
⠦ 446 imported assets found. /Volumes/dev-image/.../RandomFile.js
from deadfile.
Same here :(
✔ 582 total assets found in base directory.
⠋ 231 imported assets found. /path/to/file/File.jsx
from deadfile.
Same:
✔ 1862 total assets found in base directory.
⠏ 695 imported assets found. /Users/sunway/Documents/Project/ShopDiary/src/component/SlideFilterComponent.js
from deadfile.
+1, can confirm, I'm also experiencing this in a semi-large project with a mixed JS(X)/TS(X) codebase.
from deadfile.
This might be a duplicate of #4
from deadfile.
Thanks for the report, Sorry I was not active in the past few months.
I just made a small release (version 1.2), it should be resolved. Could you possibly confirm it in your project?
from deadfile.
I encountered this issue and I resolved by this way:
- Replace all import 'alias' to your absolute path. eg: '.src/' -> '/Users/sunway/Documents/Project/ShopDiary/src/'
- Run deadfile command
- Delete all unused files
- Replace all absolute paths to your alias
from deadfile.
@joepake What kind of alias do you use (webpack/npm/...)?
from deadfile.
Related Issues (20)
- Missing `find-babel-config` package from 1.2.0 HOT 2
- configure a baseUrl HOT 2
- Doesn't resolve directory aliases HOT 7
- [Question] Does it work directly in folder? HOT 2
- 'deadfile' is not recognized as an internal or external command, operable program or batch file. HOT 4
- Possibly typo HOT 2
- Entry point for react gatsby application HOT 3
- Debug mode HOT 3
- TypeError: Cannot read property '1' of undefined with deadfile dependency HOT 1
- checkBabelModuleResolver fails if babel config has no module resolver plugin HOT 1
- The automated release is failing 🚨 HOT 1
- [Feature Request] Possible to check imported folder from `package.json` `name` HOT 3
- Error: Table data must not contain control characters.
- License
- [Feature Request] Use a config file
- detect React.Lazy import as unusedfile
- Monorepo support
- Include support for lazy() load components
- Use as NodeJS module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deadfile.