es-toolkit/vitest.config.mts
Florens Verschelde 7b2aa1adfc
chore: use rollup instead of tsup for a cleaner dist (#255)
* update tsup to 8.2.0 (no change to dist)

* add rollup config to generate dist

* fix browser build config

* browser umd bundle sourcemap should be published

* browser bundle is iife, not umd, despite folder name

* rollup: don't use manualChunks to keep the config a tad simpler

* prepack: use rollup instead of tsup

* remove browser entrypoint from dist

* remove comments in .js and .mjs outputs

* remove src/browser.ts, use equivalent Rollup config

* Restore original .npmignore

* rollup config: rename umdBuildConfig to browserBuildConfig

* rollup: use package.json#exports for esm entrypoints

* chore: package.json

* rollup config

* sort

* lint

* prettier

---------

Co-authored-by: Sojin Park <raon0211@toss.im>
2024-07-25 00:37:53 +09:00

14 lines
282 B
TypeScript

import { defineConfig } from 'vitest/config';
import packageJson from './package.json';
export default defineConfig({
test: {
name: packageJson.name,
exclude: ['./benchmarks/**/*'],
coverage: {
provider: 'istanbul',
include: ['src/**/*'],
},
},
});