diff --git a/tsup.config.js b/tsup.config.js index dee05fd..f0e1593 100644 --- a/tsup.config.js +++ b/tsup.config.js @@ -1,12 +1,16 @@ /* eslint-disable */ import { defineConfig } from 'tsup'; -export default defineConfig((options) => ({ - clean: true, - dts: true, - format: ['cjs', 'esm'], - entry: ['src/index.ts'], - watch: options.watch && ['src/*'], - minify: !options.watch, - sourcemap: options.watch, -})); \ No newline at end of file +export default defineConfig( + /** @type {() => import('tsup').Options} */ + (options) => ({ + clean: true, + dts: true, + format: ['cjs', 'esm'], + entry: ['src/index.ts'], + watch: options.watch && ['src/*'], + minify: !options.watch, + sourcemap: options.watch, + splitting: true, + }), +); \ No newline at end of file