The tryResolveFile() function in vite:resolve does not return sideEffect of the package #8757
Closed
7 tasks done
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
In the vite:resolve plugin, when a package is resolved through tryResolveFile(), it does not return a value for moduleSideEffects.
This is especially affecting packages references by resolve.alias, which will often be absolute paths and due to this use the tryResolveFile() function.
Reproduction
https://stackblitz.com/edit/vitejs-vite-u66q7b?file=main.js&terminal=dev
System Info
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: