We would like to configure vite settings in Angular 17 via a vite.config.js
file or some other way. Specifically, these settings:
export default {
optimizeDeps: {
disabled: false,
exclude: [
'my-third-party-package',
],
},
}
Things I have tried but yielded no results:
- Running
ng eject
- Reading the official documentation on Angular's new build system (https://angular.io/guide/esbuild#esm-default-imports-vs-namespace-imports)
- Creating a
vite.config.js
in the root folder and "hoping"Angular
picks it up at build time.