import { defineConfig } from 'rolldown'; import { dts } from 'rolldown-plugin-dts'; export default defineConfig([ { input: 'src/preact.ts', output: { format: 'es', minify: true } }, { input: 'src/preact.ts', plugins: [ dts({ emitDtsOnly: true, tsconfig: false, compilerOptions: { allowSyntheticDefaultImports: true, esModuleInterop: true, module: 'ESNext', moduleResolution: 'Bundler', skipLibCheck: true, target: 'ESNext' } }) ], output: { dir: "dist", format: 'es', codeSplitting: false } } ]);