-
-
Notifications
You must be signed in to change notification settings - Fork 434
Description
Okay, seems that I've screwed up with #621.
TL;DR: We probably should revert #621 and release 2.3.6 as soon as possible, subsequently rethink the solution for #619.
What happened?
My assumptions about the basePath
overriding the rootDir
were wrong. If I'd read the TypeScript documentation more carefully, I should have noticed that rootDir
's only use is "to control the output directory structure with --outDir
". That means, it's not taken into effect if no outDir
option is specified.
Not taking this into account, my added comparison test does not use outDir
and therefore did not cover this possible point of failure:
The rootDir
gets appended to the basePath
if an outDir
is specified. Therefore, setting the basePath
to the value of the rootDir
will inevitably cause the build to break.
What to do?
It's probably not too hard to think of an alternative solution, but to have ts-loader
dependants breaking for as few people as possible, we probably should revert the changes from 2.3.5 and publish 2.3.6 as soon as possible. I'm aware that this now is a real breaking change but I can't think of a better solution from the top of my hat.
The current implementation will have to go away anyway since it's fatally flawed, I guess this is pretty much worst case for anything using semver.
Again, I'm really sorry about this.