Vite is the default bundler in Strapi 5
Page summary:In Strapi 5, Vite replaces webpack as the default bundler. Users with custom webpack configurations can convert to Vite configurations or use
--bundler=webpackto maintain v4 behavior.
In Strapi 5, Vite is the default bundler.
This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.
Breaking change description
In Strapi v4
Webpack is the default bundler.
In Strapi 5
Vite is the default bundler.
Migration
This section regroups useful notes and procedures about the introduced breaking change.
Manual procedure
Users with custom webpack configurations need to convert to Vite configurations, or alternatively set --bundler=webpack when starting the development server to keep the Strapi v4 behaviour; in the latter case, the terminal will issue a warning. Please refer to the bundlers documentation for additional details.