import { defineBuildConfig } from 'unbuild' export default defineBuildConfig({ entries: [ './src/index', './src/wallet.ts', ], declaration: true, rollup: { emitCJS: true, }, hooks: { 'rollup:options': (ctx, option) => { if (Array.isArray(option.output)) { option.output.push( { name: 'Authc', dir: ctx.options.outDir, format: 'iife', exports: 'auto', preferConst: true, externalLiveBindings: false, freeze: false, }, ) } }, }, })