delete-react-zombies
delete-react-zombies copied to clipboard
Referenced Files Getting Purged?
With a file that does a basic import such as:
import Something from './somefile'
When I give delete-react-zombies the folder, /somefile.js gets picked up for deletion. I missing something here in the instructions, or is this type of import not covered?
I have a similar pb with files that are exportes from folder/index.js
and then imported as folder
(a pretty common pattern i think?) that are proposed for deletion
Hi @steve-gray and @KudMath,
thanks a lot for your report, could you tell me more about it? I don't understand what the problem is. Thank you guys 👍
@CVarisco imagine you have a file src/helpers/index.js
that you want to import. It's very common to import it like this:
// src/component.js
import helpers from 'helpers'
without the trailing index. Those files seem to be picked up for deletion when they shouldn't