You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am expecting @contra/utilities to be converted from CommonJS to ESM by ESbuild when I configure { optimizeDeps: ['@contra/utilities'] }. Instead, @contra/utilities is not processed by ESbuild.
@contra/utilities defines explicit "exports", i.e. it is included as:
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
I am expecting
@contra/utilities
to be converted from CommonJS to ESM by ESbuild when I configure{ optimizeDeps: ['@contra/utilities'] }
. Instead,@contra/utilities
is not processed by ESbuild.@contra/utilities
defines explicit "exports", i.e. it is included as:It appears that
optimizeDeps
only works if I explicitly define the exported route:{optimizeDeps: ['@contra/utilities/hasOwnPropertyAlt']}
I expect that it would be enough to define
@contra/utilities
.A possible solution: Allow to use Regex in
includes
, i.e.{ optimizeDeps: [/@contra/] }
Reproduction
N/A
Steps to reproduce
N/A
System Info
Used Package Manager
pnpm
Logs
It appears like
Validations
The text was updated successfully, but these errors were encountered: