Description
I'm submitting a bug report
Webpack Version:
5.36.0
Babel Core Version:
7.13.16
Babel Loader Version:
8.2.2
Please tell us about your environment:
Windows 10
Current behavior:
Fully-specified ES Module Imports (with the .js
extension) do not resolve to the correct, matching .ts
or .tsx
files (as is the behavior of TypeScript and tsx
, as per the TypeScript team here: microsoft/TypeScript#41887 (comment) )
See more details at the issue in the webpack repo: webpack/webpack#13252
Expected/desired behavior:
babel-loader
resolves modules the same as TypeScript and tsx
do.
- If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.
https://github.com/Josehower/webpack-babel-test
- What is the expected behavior?
babel-loader
resolves modules the same as TypeScript and tsx
do.
- What is the motivation / use case for changing the behavior?
It's unexpected that what works in TypeScript + tsx
does not work with webpack and babel-loader