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
[node-resolve] .js
files imported from a.ts
file gets resolved to .ts
extension
#853
Comments
is there anything going on with this issue? if there is a decision/common understanding how this should work, i am happy to take over the implementation work with a pull request if possible :) |
I have the same issue! |
Thanks for opening an issue. Citing the issue template:
We cannot make this any clearer. Please add a reproduction and we'll be happy to triage further. -- @swissmanu if you'd like to take up the task on this we'd certainly welcome it. without a proper reproduction though, the maintainers can't make a call on which direction would be most beneficial, or if this deserves another option. @motss please edit your issue and add back our issue template with all requested information and I'll be happy to reopen. |
@motss can you update the issue with the Andrew request? Thanks! |
@shellscape this small test repo from @peschee show the issue: https://github.com/peschee/wds-esbuild-lit-test
|
Facing an issue with
@web/dev-server
at modernweb-dev/web#1376 where the node resolution breaks for dependencies that are usingnode
'sexports
map, e.g.FYI, nodemod's package.json is as follows:
What's happening in
@web/dev-server
is that files are imported with.ts
extension due to the following code as pointed out by the author of@web/dev-server
:plugins/packages/node-resolve/src/index.js
Lines 178 to 184 in 53776ee
Expected behavior
import { highlight } from 'nodemod/dist/lib/prismjs.js';
should resolve to'node_modules/nodemod/dist/lib/prismjs.js';
Actual behavior
import { highlight } from 'nodemod/dist/lib/prismjs.js';
resolves to'node_modules/nodemod/dist/lib/prismjs.ts';
The text was updated successfully, but these errors were encountered: