Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
[ '@vuepress/plugin-shiki', isProd ? { theme: 'dracula', // see https://github.com/shikijs/shiki/blob/main/docs/themes.md for themes } : false, ],
Vite is much faster than Webpack when it comes to bundling packages, as it uses esbuild to pre-bundle dependencies, and serves source code over native ESM. However, Vite cannot bundle code for older browsers (e.g. non ESM code). Webpack, on the other hand, can accomplish that, but is slower in bundling. Even its HMR can be quite slow when your project is humongous. However, the question now is how do I accomplish it? In fact, it's quite easy. Open your config.js (or config.ts). You should see something like the following: