Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

tsup.config.ts

22 lines499 Bytes

1import { defineConfig } from 'tsup'
2import { generateTsupOptions, parsePresetOptions } from 'tsup-preset-solid'
3​
4const preset_options = {
5 entries: {
6 entry: 'src/index.tsx',
7 dev_entry: true,
8 },
9 cjs: true,
10 drop_console: true,
12​
13export default defineConfig(() => {
14 const parsed_data = parsePresetOptions(preset_options)
15 const tsup_options = generateTsupOptions(parsed_data)
16​
17 tsup_options.forEach((tsup_option) => {
18 tsup_option.outDir = 'build'
19 })
20​
21 return tsup_options
22})