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