-
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed as not planned
Description
Description
We currently use esbuild to do pre-build dependencies, however, there are some limitations of esbuild, and esbuild can not handle some edge cases very well. Using rollup is slower than using esbuild, but slower is better than can't run.
Suggested solution
Maybe we can add an option called backend
in optimizeDeps
, which can be set to esbuild
and rollup
, and the default value is esbuild
.
export default defineConfig({
optimizeDeps: {
backend: 'rollup',
}
})
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.