oxc-project / oxc-resolver

Rust version of webpack/enhanced-resolve
https://oxc.rs/docs/guide/usage/resolver.html
MIT License
122 stars 18 forks source link

alias resolve failed for readable-stream@2.3.8 #195

Closed Boshen closed 3 months ago

Boshen commented 3 months ago

https://github.com/umijs/mako/pull/1282

Boshen commented 3 months ago

I can't reproduce this:

pnpm add -D readable-stream@2.3.8 -w
just example /Users/boshen/oxc/oxc-resolver/node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream string_decoder/

Resolved: "/Users/boshen/oxc/oxc-resolver/node_modules/.pnpm/string_decoder@1.1.1/node_modules/string_decoder/lib/string_decoder.js"

And see also https://github.com/nodejs/readable-stream/issues/481#issuecomment-1209139403.

I would say it's better to use v4 if you want to bundle this. The architecture of bundlers changed significantly and v3 has not been kept up to date.