Autofills your vite config, packageJson and distribution packageJson based on conventional file and directory layouts.
Packaging a publishable library is as easy as defining a vite config with just this single plugin (also wraps vite-plugin-dts):
import { defineConfig } from 'vite';import { pakk } from 'vite-plugin-pakk';export default defineConfig({ plugins: [ pakk(), ],}); Copy
import { defineConfig } from 'vite';import { pakk } from 'vite-plugin-pakk';export default defineConfig({ plugins: [ pakk(), ],});
Optional
Pakk
Autofills your vite config, packageJson and distribution packageJson based on conventional file and directory layouts.
Packaging a publishable library is as easy as defining a vite config with just this single plugin (also wraps vite-plugin-dts):