input-format
Version:
Formatting user's text input on-the-fly
39 lines (38 loc) • 722 B
JavaScript
import json from 'rollup-plugin-json'
import { terser } from 'rollup-plugin-terser'
export default [
{
input: 'index.js',
plugins: [
json(),
terser()
],
output: {
format: 'umd',
name: 'InputFormat',
file: 'bundle/input-format.min.js',
sourcemap: true
}
},
{
input: 'react/index',
plugins: [
json(),
terser()
],
external: [
'react',
'prop-types'
],
output: {
format: 'umd',
name: 'InputFormat',
file: 'bundle/input-format-react.min.js',
sourcemap: true,
globals: {
'react': 'React',
'prop-types': 'PropTypes'
}
}
}
]