Closed mhsdesign closed 1 year ago
Thanks for the report. This is actually a determinism issue as esbuild stops when it encounters the first match instead of checking all of them and taking the longest match. So this is definitely a bug with esbuild.
Thank you for fixing it and your efforts ❤️
in webpack (4) i was able to sucessfully use their "resolve" feature to archive the following: mapping my imports to a shim.
i personally would expect that this map would also work with the esbuild alias feature. But my assumption is wrong, i thought
redux-saga
would be handled like this/^redux-saga\/?$/
but the import is also replaced for this case:will become
(which i dindt anticipate for now)
it seems my first alias
redux-saga/effects
is not used butredux-saga
will take effect and theeffects
subfolder/file is appended ...maybe its a feature though ^^ i mean i could just adjust my code, but wanted to ask if this behaviour is intended.