import resolve from 'rollup-plugin-node-resolve'
import commonjs from 'rollup-plugin-commonjs'
import { terser } from 'rollup-plugin-terser'
import filesize from 'rollup-plugin-filesize'
// We dont need babel. All polyfills are compatible
const config = (ie) => ({
input: ie ? './.config/polyfillListIE.js' : './.config/polyfillList.js',
output: {
file: ie ? 'dist/polyfillsIE.js' : 'dist/polyfills.js',
sourceMap: false,
format: 'iife'
},
plugins: [
resolve({ browser: true }),
commonjs(),
terser(),
filesize()
]
})
export default [false, true].map(config)
d63de4087a6fa9bbb8efa10e4d'/>
blob: 3ab73beb9d448b1697b542de1abcb57f761979e7 (
plain)