diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
commit | 03322672782a6318b019eff33fe44ec800d6f12c (patch) | |
tree | 9d807e1585cf28a1ea98e87b855932dba00f1880 /.config/rollup.tests.js | |
parent | 8e18b4698edd00f83af0be05bb3374f92fecaeb9 (diff) | |
download | svg.js-03322672782a6318b019eff33fe44ec800d6f12c.tar.gz svg.js-03322672782a6318b019eff33fe44ec800d6f12c.zip |
dependency updates, easier formatting
Diffstat (limited to '.config/rollup.tests.js')
-rw-r--r-- | .config/rollup.tests.js | 64 |
1 files changed, 35 insertions, 29 deletions
diff --git a/.config/rollup.tests.js b/.config/rollup.tests.js index 3620149..fe093b6 100644 --- a/.config/rollup.tests.js +++ b/.config/rollup.tests.js @@ -4,40 +4,46 @@ import multiEntry from '@rollup/plugin-multi-entry' import resolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' -const getBabelConfig = (targets) => babel({ - include: ['src/**', 'spec/**/*'], - babelHelpers: 'runtime', - babelrc: false, - presets: [['@babel/preset-env', { - modules: false, - targets: targets || pkg.browserslist, - // useBuildins and plugin-transform-runtime are mutually exclusive - // https://github.com/babel/babel/issues/10271#issuecomment-528379505 - // use babel-polyfills when released - useBuiltIns: false, - // corejs: 3, - bugfixes: true - }]], - plugins: [ - ['@babel/plugin-transform-runtime', { - corejs: 3, - helpers: true, - useESModules: true, - version: "^7.9.6", - regenerator: false - }] - ] -}) +const getBabelConfig = (targets) => + babel({ + include: ['src/**', 'spec/**/*'], + babelHelpers: 'runtime', + babelrc: false, + presets: [ + [ + '@babel/preset-env', + { + modules: false, + targets: targets || pkg.browserslist, + // useBuildins and plugin-transform-runtime are mutually exclusive + // https://github.com/babel/babel/issues/10271#issuecomment-528379505 + // use babel-polyfills when released + useBuiltIns: false, + // corejs: 3, + bugfixes: true + } + ] + ], + plugins: [ + [ + '@babel/plugin-transform-runtime', + { + corejs: 3, + helpers: true, + useESModules: true, + version: '^7.9.6', + regenerator: false + } + ] + ] + }) export default { - input: [ - 'spec/setupBrowser.js', - 'spec/spec/*/*.js' - ], + input: ['spec/setupBrowser.js', 'spec/spec/*/*.js'], output: { file: 'spec/es5TestBundle.js', name: 'SVGTests', - format: 'iife', + format: 'iife' }, plugins: [ resolve({ browser: true }), |