Open History to see the last commit
1import { defineConfig } from 'tsdown'
2β
3export default defineConfig({
4 entry: ['src/**/*.ts', '!src/__tests__/**'],
5 format: ['esm'],
6 target: ['chrome91', 'firefox90', 'edge91', 'safari15', 'ios15', 'opera77'],
7 // Rolldown lowers private fields for browser target arrays. Keep the
8 // transform target at ES2022 to match the syntax that tsup emitted.
9 inputOptions: { transform: { target: 'es2022' } },
10 outDir: 'dist',
11 unbundle: true,
12 dts: true,
13 fixedExtension: true,
14 sourcemap: true,
15 clean: true,
16 publint: {
17 strict: true,
18 },
19 attw: {
20 profile: 'esm-only',
21 level: 'error',
22 },
23})