| 1 | import resolve from '@rollup/plugin-node-resolve' |
| 2 | import commonjs from '@rollup/plugin-commonjs' |
| 3 | import filesize from 'rollup-plugin-filesize' |
| 4 | |
| 5 | // We dont need babel. All polyfills are compatible |
| 6 | const config = (ie) => ({ |
| 7 | input: './.config/polyfillListIE.js', |
| 8 | output: { |
| 9 | file: 'dist/polyfillsIE.js', |
| 10 | format: 'iife' |
| 11 | }, |
| 12 | plugins: [ |
| 13 | resolve({ browser: true }), |
| 14 | commonjs(), |
| 15 | //terser(), |
| 16 | filesize() |
| 17 | ] |
| 18 | }) |
| 19 | |
| 20 | export default [true].map(config) |