Skip to main content

Vite is the default bundler in Strapi 5

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.

🔌 Is this breaking change affecting plugins?Yes
🤖 Is this breaking change automatically handled by a codemod?No

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.