https://github.com/danielroe/nuxt-rebundle
Bundler optimisations for Nuxt
https://github.com/danielroe/nuxt-rebundle
Last synced: 10 months ago
JSON representation
Bundler optimisations for Nuxt
- Host: GitHub
- URL: https://github.com/danielroe/nuxt-rebundle
- Owner: danielroe
- License: mit
- Created: 2024-10-21T23:33:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-05T11:53:10.000Z (11 months ago)
- Last Synced: 2025-08-05T13:31:59.749Z (11 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.1 MB
- Stars: 55
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Nuxt Rebundle
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Github Actions][github-actions-src]][github-actions-href]
[![Codecov][codecov-src]][codecov-href]
> Bundler optimisations for [Nuxt](https://nuxt.com)
- [✨ Changelog](https://github.com/danielroe/nuxt-rebundle/blob/main/CHANGELOG.md)
> [!WARNING]
> This module is a work-in-progress laboratory for exploring bundler optimisations in Nuxt.
## Features
- ⚡️ automatically splits out `useAsyncData` fetcher functions into async chunks (for use with static site generation)
## Installation
Install and add `nuxt-rebundle` to your `nuxt.config`.
```bash
npx nuxi@latest module add nuxt-rebundle
```
```js
export default defineNuxtConfig({
modules: ['nuxt-rebundle'],
})
```
## 💻 Development
- Clone this repository
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`
- Stub module with `pnpm dev:prepare`
- Run `pnpm dev` to start [playground](./playground) in development mode
## License
Made with ❤️
Published under the [MIT License](./LICENCE).
[npm-version-src]: https://img.shields.io/npm/v/nuxt-rebundle?style=flat-square
[npm-version-href]: https://npmjs.com/package/nuxt-rebundle
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-rebundle?style=flat-square
[npm-downloads-href]: https://npm.chart.dev/nuxt-rebundle
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/danielroe/nuxt-rebundle/ci.yml?branch=main
[github-actions-href]: https://github.com/danielroe/nuxt-rebundle/actions?query=workflow%3Aci
[codecov-src]: https://img.shields.io/codecov/c/gh/danielroe/nuxt-rebundle/main?style=flat-square
[codecov-href]: https://codecov.io/gh/danielroe/nuxt-rebundle