summaryrefslogtreecommitdiffstats
path: root/rollup.tests.js
blob: 655654b93fb595b3f24c1019d3afb680d5069f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import babel from 'rollup-plugin-babel'
import multiEntry from 'rollup-plugin-multi-entry'

export default {
  input: ['spec/setupBrowser.js', 'spec/spec/types/*.js', 'spec/spec/utils/*.js'],
  output: {
    file: 'spec/es5TestBundle.js',
    name: 'SVGTests',
    sourceMap: true,
    format: 'iife'
  },
  plugins: [
    babel({
      include: 'src/**',
      runtimeHelpers: true,
      babelrc: false,
      presets: [["@babel/preset-env", {
        modules: false,
      }]],
      // plugins: [["@babel/plugin-transform-runtime", {
      //   corejs: false,
      //   helpers: true,
      //   regenerator: true,
      //   useESModules: true
      // }]]
    }),
    multiEntry()
  ]
}