Skip to content

vite-plugin-hrc-import

Automatically use path import for components of <hrc /> packages to reduce bundle size.

Installation

Terminal window
npm install -D vite-plugin-hrc-import

Usage

In your vite.config.js file:

import hrcImportPlugin from "vite-plugin-hrc-import";
export default {
plugins: [hrcImportPlugin()],
};

Supported packages