import typescript from '@rollup/plugin-typescript'; /** * @type {import('rollup').RollupOptions} */ const configs = [ { input: ['src/index.ts'], output: [ { dir: 'lib', format: 'cjs', preserveModules: true, entryFileNames: '[name].cjs', }, ], plugins: [typescript()], }, ]; export default configs;