We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you import a file by directory that contains an index.js file, and you rename the index.js file, references to it don't get updated.
Take the following example. Here's what the directory structure looks like before the refactor:
src/ components/ MyComponent.js (this file imports from "./propTypes") propTypes/ index.js
If you rename /components/propTypes/index.js to /utils/propTypes.js, it will not update the MyComponent.js file to import from the new location.
/components/propTypes/index.js
/utils/propTypes.js
MyComponent.js
Directory Structure after refactor:
src/ components/ MyComponent.js (this file imports from "./propTypes") utils/ propTypes.js
Import String before refactor:
import * as propTypes from './propTypes';
Expected import string after refactor:
import * as propTypes from '../utils/propTypes';
Actual import string after refactor: (same as before refactor)
The text was updated successfully, but these errors were encountered:
Thx for the bug report and write up @spudly! I'll see what I can do to support this.
Sorry, something went wrong.
No branches or pull requests
When you import a file by directory that contains an index.js file, and you rename the index.js file, references to it don't get updated.
Take the following example. Here's what the directory structure looks like before the refactor:
If you rename
/components/propTypes/index.js
to/utils/propTypes.js
, it will not update theMyComponent.js
file to import from the new location.Directory Structure after refactor:
Import String before refactor:
Expected import string after refactor:
Actual import string after refactor: (same as before refactor)
The text was updated successfully, but these errors were encountered: