Bundler optimisations for Nuxt
Warning
This module is a work-in-progress laboratory for exploring bundler optimisations in Nuxt.
- ⚡️ automatically splits out
useAsyncDatafetcher functions into async chunks (for use with static site generation)
Install and add nuxt-rebundle to your nuxt.config.
npx nuxi@latest module add nuxt-rebundleexport default defineNuxtConfig({
modules: ['nuxt-rebundle'],
})- Clone this repository
- Enable Corepack using
corepack enable - Install dependencies using
pnpm install - Stub module with
pnpm dev:prepare - Run
pnpm devto start playground in development mode
Made with ❤️
Published under the MIT License.