lib/octicons_react/rollup.config.js (22 lines of code) (raw):
import babel from 'rollup-plugin-babel'
import commonjs from 'rollup-plugin-commonjs'
const formats = ['esm', 'umd'] // 'cjs' ?
export default {
input: 'src/index.js',
plugins: [
babel({
babelrc: false,
presets: [
['env', {modules: false}],
'stage-0',
'react'
]
}),
commonjs()
],
output: formats.map(format => ({
file: `dist/index.${format}.js`,
format,
name: 'reocticons'
}))
}