diff options
Diffstat (limited to '.config/rollup.tests.js')
-rw-r--r-- | .config/rollup.tests.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.config/rollup.tests.js b/.config/rollup.tests.js new file mode 100644 index 0000000..518be94 --- /dev/null +++ b/.config/rollup.tests.js @@ -0,0 +1,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() + ] +} |