0.0.3 • Published 1 year ago
@padcom/vite-lib-config v0.0.3
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