Closed kentcdodds closed 8 years ago
Maybe to check only if it’s a filename (contains an extension)?
Ah, that's not a bad idea. Problem is many people often omit the extension because they rely on the resolve.extensions (which we should probably account for here as well).
I want to err on the side of fewer errors I think, so unless we can think of a fool-proof way to know when to resort to checking for the file existing, I think I'll go for what you suggest.
Yeah, resolve.extensions
is a good idea also.
From @sokra on gitter:
Basically doing this validation thing is going to be really hard because Webpack is amazingly flexible.