An open API service indexing awesome lists of open source software.

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

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