Open ReDrUm opened 7 years ago
Thanks! Will take a look.
any progress on this? thanks~!
Hey, missed this. I'll take s look.
On Mon, Mar 6, 2017 at 5:09 AM +0100, "Beep LIN" notifications@github.com wrote:
any progress on this? thanks~!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Hey beeplin!
Do you have multiple files with the same name in different folders? Example:
import { memberA, memberB } from '../../shared/util/images'; // skipped
If you had images.js in multiple different folders, the parser will intentionally skip it because it can't figure out which exactly file you need.
Let me know. It's gonna be tricky to handle different edge cases :)
Some import statements are incorrectly skipped when fixing relative paths.
Example 1: Before (back two directories):
Example 1: After (back three directories):
Example 2: Before (back two directories):
Example 2: After (back three directories):
This problem occurs throughout several of my project's files. It seems to occur for both single member and multiple member imports.
Interestingly it seems to struggle with imports with multiple members within a single line, but succeeds if they're split e.g.