-
Notifications
You must be signed in to change notification settings - Fork 12.8k
use absolute path as key to store files, correctly handle scenarios w… #5275
New issue
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
Conversation
…hen file names differ only in casing
} | ||
}, | ||
{ | ||
name: "forceConsistentCasingInFileNames", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--useCaseSensitiveLookups
or
--caseSensitiveFileNames
👍 |
calling @RyanCavanaugh and @DanielRosenwasser: any preferences/opinions regarding the name and description of the command line option? |
use absolute path as key to store files, correctly handle scenarios w…
There is some weird behavior coming about (I believe) due to these changes. In particular, Is it expected that language service implementations now need to join on the |
@jbrantly can you share more details. that change was not intentional. |
Sure. I caught this running the test suite of ts-loader on the nightly build. I have a test where I use the custom module resolution stuff ( As a secondary issue, after putting in a "fix" so that Basically this: file.version++;
file.text = contents;
console.log('before');
console.log(contents);
var output = langService.getEmitOutput(filePath);
console.log('after');
console.log(output.outputFiles[0].text); results in:
If you want to duplicate yourself you can:
It will build fine initially, but if you were to throw a few If you change to [email protected] things work as they should. I can open new issues for these if you'd like. |
I think I know what is going on. Will look into the solution tonight |
the change was 'sort of' intentional and you've already pointed to the line with motivating comment: // convert an absolute import path to path that is relative to current directory
// this was host still can locate it but files names in user output will be shorter (and thus look nicer). this however means that implementations of |
#5462 partially reverts this PR |
use absolute path as key to store files, correctly handle scenarios w…
…hen file names differ only in casing. Fixes #5102, #5274, #3626, #4719, #2011