UNPKG

fundme

Version:

A simple but powerful client-side library to manage monetization on the web.

32 lines (29 loc) 682 B
import commonjs from '@rollup/plugin-commonjs'; import resolve from '@rollup/plugin-node-resolve'; import babel from '@rollup/plugin-babel' const extensions = [ '.js', '.jsx', '.ts', '.tsx', ]; export default { input: 'index.ts', external: [], plugins: [ resolve({ extensions }), commonjs(), babel({ extensions, babelHelpers: 'bundled', include: ['src/**/*'] }), ], output: [{ file: 'dist/fundme-iife.js', format: 'iife', name: 'fundme' }, { file: 'dist/fundme-cjs.js', format: 'cjs' }, { file: 'dist/fundme.mjs', format: 'es' }, { file: 'dist/fundme-amd.js', format: 'amd', }] };