Closed deadcoder0904 closed 3 years ago
I don’t think it’s correct, as you point out, because source-map
was last published 3 years ago on npm.
/cc @silvenon who added it last month in https://github.com/wooorm/xdm/pull/43.
Unfortunately #43 didn't fix my problem, I only thought it did. My problem is somewhere else, but I wasn't able to figure out where.
On npm page for source-map
you can see the TypeScript icon, which means that it does pack its own type definitions, so @deadcoder0904 is right. Feel free to revert #43.
Hmm okay! Weird. Maybe something is using resolutions
to use an older source-map
for you? Otherwise I’d expect that xdm is getting the version it wants (^0.7.0
, which has the types)
Thanks for reporting @deadcoder0904!
Haha, nice. Can you guys make me understand how it uses types if it was published 3 years ago?
I guess because TS@3 was around already back then!
@types/source-map
can be removed as it looks likesource-map
bundles its own types now:https://github.com/wooorm/xdm/blob/3f121ec2c4280832f4a9010e76622be60d015ba0/package.json#L42
I got a warning while installing
mdx-bundler
so I found outxdm
uses it:But I'm not sure as they have last released the version 2 years ago!