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.
npm install -D vite-plugin-hrc-importIn your vite.config.js file:
import hrcImportPlugin from "vite-plugin-hrc-import";
export default defineConfig({
plugins: [hrcImportPlugin()],
});