@de100/form-echo
Version:
A form state management for fields validations and errors
23 lines (20 loc) • 628 B
text/typescript
// Credit to <https://stackoverflow.com/a/73883783/13961420>
import { defineConfig } from 'tsup';
import path from 'path';
export default defineConfig([
{
// clean: true,
// dts: true,
// minify: true,
// splitting: true,
entry: ['./src/index.ts', './src/utils/helpers/index.js'],
// Credit to: <https://stackoverflow.com/a/74604287/13961420>
esbuildOptions(options) {
options.external = ['use-sync-external-store', 'zod', 'zustand', 'react'];
},
format: ['esm', 'cjs'],
sourcemap: true,
tsconfig: path.resolve(process.cwd(), './tsconfig.build.json'),
outDir: 'dist',
},
]);