Nuxt Rebundle

0.0.2 · active · verified Sun Apr 19

Nuxt Rebundle is an experimental Nuxt module designed to explore and implement advanced bundler optimizations for Nuxt applications. As of version 0.0.2, it is a 'work-in-progress laboratory,' focusing primarily on automatically splitting `useAsyncData` fetcher functions into asynchronous chunks. This feature is particularly beneficial for static site generation (SSG) scenarios to improve initial page load performance by deferring the loading of data-fetching logic until it's needed. Due to its early development stage, there is no predictable release cadence, and the module should be approached with caution as its API and internal workings are subject to frequent changes. Key differentiators include its tight integration with Nuxt's build process to automatically apply specific optimization patterns that might otherwise require complex manual configuration, though its feature set is currently limited to `useAsyncData` splitting.

Common errors

Warnings

Install

Imports

Quickstart

Illustrates how to install `nuxt-rebundle` via `nuxi` and register it in `nuxt.config.ts`.

npx nuxi@latest module add nuxt-rebundle

// nuxt.config.ts
import { defineNuxtConfig } from 'nuxt';

export default defineNuxtConfig({
  modules: [
    // Register the nuxt-rebundle module.
    // Note: No configuration options are currently exposed or documented.
    'nuxt-rebundle'
  ],
  // Other Nuxt configuration...
  devtools: { enabled: true }
});

view raw JSON →