@padcom/vite-config-lib
v0.10.0
Published
Vite configuration for a TypeScript library
Downloads
183
Readme
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