tsdown.config.ts 548 B

123456789101112131415161718
  1. import { defineConfig } from 'tsdown'
  2. /**
  3. * Package-shape override (see the root tsdown.config.ts): besides the
  4. * default lib/index.js bundle, the worker BOOTSTRAP ships as its own
  5. * sibling entry — `new Worker(new URL('./worker.js', import.meta.url))`
  6. * loads it as a file, so it cannot be part of the index bundle.
  7. */
  8. export default defineConfig({
  9. entry: ['lib/types/index.js', 'lib/types/worker.js'],
  10. outDir: 'lib',
  11. format: ['esm'],
  12. platform: 'node',
  13. target: 'es2024',
  14. fixedExtension: false,
  15. dts: false,
  16. clean: false,
  17. })