rolldown_plugin_manifest

Crates.iorolldown_plugin_manifest
lib.rsrolldown_plugin_manifest
version0.1.0
created_at2025-10-18 03:48:16.890776+00
updated_at2025-10-18 03:48:16.890776+00
descriptionRolldown plugin for build manifest generation
homepagehttps://rolldown.rs/
repositoryhttps://github.com/rolldown/rolldown
max_upload_size
id1888775
size88,928
Boshen (Boshen)

documentation

README

Maintenance Guide

A plugin for rolldown-vite that generates a manifest.json mapping original filenames to emitted assets/chunks, ported from Vite's manifestPlugin.

This plugin is exclusive to rolldown-vite and is not recommended for external use.

📦 What it does

This plugin collects all emitted chunks and assets, associates them with their original names, and outputs a manifest JSON. Useful for server-side rendering or asset injection.

🚀 Debug Usage

import { defineConfig } from 'rolldown';
import { manifestPlugin } from 'rolldown/experimental';

export default defineConfig({
  input: {
    entry: './main.ts',
  },
  plugins: [manifestPlugin({
    root: path.resolve(import.meta.dirname),
    outPath: path.resolve(import.meta.dirname, 'dist/manifest.json'),
  })],
});

⚙️ Options

Option Type Description
root string Project root directory
outPath string Where to write the manifest output file
Commit count: 6097

cargo fmt