0.1.1 • Published 3 months ago
vite-plugin-barrel v0.1.1
vite-plugin-barrel
A vite port version of next.js optimizePackagesImports
why
Some packages exports lots of modules, it will cause vite transform lots of files in build step. For example, @mui/icons-material
exports 1000+ components, it's harmful for vite build performance.
Test on Apple M1 Pro
, with this plugin, it improve 50%+ build performance.
install
pnpm add vite-plugin-barrel
usage
// vite.config.ts
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
import { barrel } from 'vite-plugin-barrel'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
barrel({ packages: ['@mui/material', '@mui/icons-material'] }),
],
})
credits
built with ❤️ by 😼
0.1.1
3 months ago
0.0.0-snapshot-20240121111118
4 months ago
0.1.0
5 months ago
0.0.1
5 months ago
0.0.0-snapshot-20231210122820
5 months ago
0.0.0-snapshot-20231210075121
5 months ago
0.0.2
5 months ago
0.0.0-snapshot-20231210075215
5 months ago
0.0.0-snapshot-20231210121725
5 months ago
0.0.0-snapshot-20231210082554
5 months ago
0.0.0-snapshot-20231210075429
5 months ago
0.0.0-snapshot-20231209093925
5 months ago