1.2.0 • Published 10 months ago

vite-plugin-hrc-import v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

vite-plugin-hrc-import

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

!NOTE If your project does not support Vite, you can use @hrc/babel-config instead.

Installation

npm install -D vite-plugin-hrc-import

Usage

In your vite.config.js file:

import hrcImportPlugin from "vite-plugin-hrc-import";

export default defineConfig({
  plugins: [hrcImportPlugin()],
});

Documentation

1.2.0

10 months ago

1.1.0

11 months ago

1.0.0

11 months ago