Skip to main content

Configuration

Packer exposes separate configuration APIs for Webpack and Vite. Use the guide for the bundler your app runs:

Both APIs set @root./src by default. Mirror that alias in tsconfig.json paths for TypeScript:

{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@root/*": ["src/*"]
}
}
}

See the @ekz/packer TypeScript types in dist/ for the full options surface.