vite-plugin-hrc-import
v1.2.0
Published
Automatically use path import for components of <hrc /> packages to reduce bundle size
Downloads
216
Maintainers
Readme
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()],
});