0.2.0 • Published 12 months ago
@padcom/vite-config-lib v0.2.0
Vite configuration for libraries
This package exposes a function that defines a a Vite configuration for libraries. The default configuration consists of the following elements:
Base library configuration
- vite-dts-plugin plugin
The base library configuration (without vitest-based testing) can be used through the
defineBaseLibConfig()
function
Externals configuration
Packages specified in `package.json' in the following sections are automatically added to externals:
dependencies
peerDependencies
optionslDependencies
The externals configuration can be used standalone throug the defineExternalsConfig()
function