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
30
31
32
|
import babel from 'rollup-plugin-babel'
import multiEntry from 'rollup-plugin-multi-entry'
export default {
input: [
'spec/setupBrowser.js',
'spec/spec/*/*.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()
]
}
|