File size: 473 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import pkg from '../../package.json';
import { createRollupConfig } from './createRollupConfig';
const name = 'index';
const options = [
{
name,
format: 'cjs',
input: pkg.source,
},
{ name, format: 'esm', input: pkg.source },
{
name: 'react-server',
format: 'esm',
input: 'src/index.react-server.ts',
},
{
name,
format: 'umd',
input: pkg.source,
},
];
export default options.map((option) => createRollupConfig(option));
|