aboutsummaryrefslogtreecommitdiffstats
path: root/.config/rollup.polyfills.js
blob: f089ceb0f69342091ec8e84d3fc4d343aea25b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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: './.config/polyfillListIE.js',
  output: {
    file: 'dist/polyfillsIE.js',
    format: 'iife'
  },
  plugins: [
    resolve({ browser: true }),
    commonjs(),
    //terser(),
    filesize()
  ]
})

export default [true].map(config)