From 03322672782a6318b019eff33fe44ec800d6f12c Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Tue, 13 Jun 2023 01:43:37 +0200 Subject: dependency updates, easier formatting --- .config/karma.conf.cjs | 88 ++++++++++++++++++++++++ .config/karma.conf.common.cjs | 67 ++++++++++++++++++ .config/karma.conf.common.js | 67 ------------------ .config/karma.conf.js | 88 ------------------------ .config/karma.conf.saucelabs.cjs | 144 ++++++++++++++++++++++++++++++++++++++ .config/karma.conf.saucelabs.js | 145 --------------------------------------- .config/polyfillListIE.js | 4 +- .config/pretest.js | 8 ++- .config/rollup.config.js | 81 +++++++++++++--------- .config/rollup.tests.js | 64 +++++++++-------- 10 files changed, 390 insertions(+), 366 deletions(-) create mode 100644 .config/karma.conf.cjs create mode 100644 .config/karma.conf.common.cjs delete mode 100644 .config/karma.conf.common.js delete mode 100644 .config/karma.conf.js create mode 100644 .config/karma.conf.saucelabs.cjs delete mode 100644 .config/karma.conf.saucelabs.js (limited to '.config') diff --git a/.config/karma.conf.cjs b/.config/karma.conf.cjs new file mode 100644 index 0000000..7584c92 --- /dev/null +++ b/.config/karma.conf.cjs @@ -0,0 +1,88 @@ +// Karma configuration +const karmaCommon = require('./karma.conf.common.cjs') + +let chromeBin = 'ChromeHeadless' +if (process.platform === 'linux') { + // We need to choose either Chrome or Chromium. + // Canary is not available on linux. + // If we do not find Chromium then we can deduce that + // either Chrome is installed or there is no Chrome variant at all, + // in which case karma-chrome-launcher will output an error. + // If `which` finds nothing it will throw an error. + const { execSync } = require('child_process') + + try { + if (execSync('which chromium-browser')) chromeBin = 'ChromiumHeadless' + } catch (e) {} +} + +module.exports = function (config) { + config.set( + Object.assign(karmaCommon(config), { + files: [ + 'spec/RAFPlugin.js', + { + pattern: 'spec/fixtures/fixture.css', + included: false, + served: true + }, + { + pattern: 'spec/fixtures/pixel.png', + included: false, + served: true + }, + { + pattern: 'src/**/*.js', + included: false, + served: true, + type: 'modules' + }, + { + pattern: 'spec/helpers.js', + included: false, + served: true, + type: 'module' + }, + { + pattern: 'spec/setupBrowser.js', + included: true, + type: 'module' + }, + { + pattern: 'spec/spec/*/**/*.js', + included: true, + type: 'module' + } + ], + + // preprocess matching files before serving them to the browser + // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor + preprocessors: { + 'src/**/*.js': ['coverage'] + }, + + // test results reporter to use + // possible values: 'dots', 'progress' + // available reporters: https://npmjs.org/browse/keyword/karma-reporter + reporters: ['progress', 'coverage'], + coverageReporter: { + // Specify a reporter type. + type: 'lcov', + dir: 'coverage/', + subdir: function (browser) { + // normalization process to keep a consistent browser name accross different OS + return browser.toLowerCase().split(/[ /-]/)[0] // output the results into: './coverage/firefox/' + }, + instrumenterOptions: { + istanbul: { + esModules: true + } + } + }, + + // start these browsers + // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher + browsers: [chromeBin, 'FirefoxHeadless'] + }) + ) +} diff --git a/.config/karma.conf.common.cjs b/.config/karma.conf.common.cjs new file mode 100644 index 0000000..4808996 --- /dev/null +++ b/.config/karma.conf.common.cjs @@ -0,0 +1,67 @@ +// Karma shared configuration + +const os = require('os') +const cpuCount = os.cpus().length + +module.exports = function (config) { + return { + // base path that will be used to resolve all patterns (eg. files, exclude) + basePath: '../', + + // frameworks to use + // available frameworks: https://npmjs.org/browse/keyword/karma-adapter + frameworks: ['jasmine'], + + // list of files / patterns to load in the browser + files: [ + '.config/pretest.js', + 'spec/RAFPlugin.js', + { + pattern: 'spec/fixtures/fixture.css', + included: false, + served: true + }, + { + pattern: 'spec/fixtures/fixture.svg', + included: false, + served: true + }, + { + pattern: 'spec/fixtures/pixel.png', + included: false, + served: true + }, + 'dist/svg.js', + 'spec/spec/*.js' + ], + + proxies: { + '/fixtures/': '/base/spec/fixtures/', + '/spec/': '/base/spec/' + }, + + // web server port + port: 9876, + + // enable / disable colors in the output (reporters and logs) + colors: true, + + // level of logging + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG + logLevel: config.LOG_INFO, + + // enable / disable watching file and executing tests whenever any file changes + autoWatch: false, + + // Continuous Integration mode + // if true, Karma captures browsers, runs the tests and exits + singleRun: true, + + // Concurrency level + // how many browser should be started simultaneous + concurrency: cpuCount || Infinity, + + // list of files to exclude + exclude: [] + } +} diff --git a/.config/karma.conf.common.js b/.config/karma.conf.common.js deleted file mode 100644 index 4808996..0000000 --- a/.config/karma.conf.common.js +++ /dev/null @@ -1,67 +0,0 @@ -// Karma shared configuration - -const os = require('os') -const cpuCount = os.cpus().length - -module.exports = function (config) { - return { - // base path that will be used to resolve all patterns (eg. files, exclude) - basePath: '../', - - // frameworks to use - // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ['jasmine'], - - // list of files / patterns to load in the browser - files: [ - '.config/pretest.js', - 'spec/RAFPlugin.js', - { - pattern: 'spec/fixtures/fixture.css', - included: false, - served: true - }, - { - pattern: 'spec/fixtures/fixture.svg', - included: false, - served: true - }, - { - pattern: 'spec/fixtures/pixel.png', - included: false, - served: true - }, - 'dist/svg.js', - 'spec/spec/*.js' - ], - - proxies: { - '/fixtures/': '/base/spec/fixtures/', - '/spec/': '/base/spec/' - }, - - // web server port - port: 9876, - - // enable / disable colors in the output (reporters and logs) - colors: true, - - // level of logging - // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG - logLevel: config.LOG_INFO, - - // enable / disable watching file and executing tests whenever any file changes - autoWatch: false, - - // Continuous Integration mode - // if true, Karma captures browsers, runs the tests and exits - singleRun: true, - - // Concurrency level - // how many browser should be started simultaneous - concurrency: cpuCount || Infinity, - - // list of files to exclude - exclude: [] - } -} diff --git a/.config/karma.conf.js b/.config/karma.conf.js deleted file mode 100644 index 67667c7..0000000 --- a/.config/karma.conf.js +++ /dev/null @@ -1,88 +0,0 @@ -// Karma configuration -const karmaCommon = require('./karma.conf.common.js') - -let chromeBin = 'ChromeHeadless' -if (process.platform === 'linux') { - // We need to choose either Chrome or Chromium. - // Canary is not available on linux. - // If we do not find Chromium then we can deduce that - // either Chrome is installed or there is no Chrome variant at all, - // in which case karma-chrome-launcher will output an error. - // If `which` finds nothing it will throw an error. - const { execSync } = require('child_process') - - try { - if (execSync('which chromium-browser')) chromeBin = 'ChromiumHeadless' - } catch (e) {} -} - -module.exports = function (config) { - config.set( - Object.assign(karmaCommon(config), { - files: [ - 'spec/RAFPlugin.js', - { - pattern: 'spec/fixtures/fixture.css', - included: false, - served: true - }, - { - pattern: 'spec/fixtures/pixel.png', - included: false, - served: true - }, - { - pattern: 'src/**/*.js', - included: false, - served: true, - type: 'modules' - }, - { - pattern: 'spec/helpers.js', - included: false, - served: true, - type: 'module' - }, - { - pattern: 'spec/setupBrowser.js', - included: true, - type: 'module' - }, - { - pattern: 'spec/spec/*/**/*.js', - included: true, - type: 'module' - } - ], - - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - 'src/**/*.js': ['coverage'] - }, - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ['progress', 'coverage'], - coverageReporter: { - // Specify a reporter type. - type: 'lcov', - dir: 'coverage/', - subdir: function (browser) { - // normalization process to keep a consistent browser name accross different OS - return browser.toLowerCase().split(/[ /-]/)[0] // output the results into: './coverage/firefox/' - }, - instrumenterOptions: { - istanbul: { - esModules: true - } - } - }, - - // start these browsers - // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: [chromeBin, 'FirefoxHeadless'] - }) - ) -} diff --git a/.config/karma.conf.saucelabs.cjs b/.config/karma.conf.saucelabs.cjs new file mode 100644 index 0000000..484ebee --- /dev/null +++ b/.config/karma.conf.saucelabs.cjs @@ -0,0 +1,144 @@ +// Karma configuration +// https://wiki.saucelabs.com/display/DOCS/Platform+Configurator + +// TODO: remove dotenv after local test +// require('dotenv').config() + +const karmaCommon = require('./karma.conf.common.cjs') + +const SauceLabsLaunchers = { + /** Real mobile devices are not available + * Your account does not have access to Android devices. + * Please contact sales@saucelabs.com to add this feature to your account. */ + /* sl_android_chrome: { + base: 'SauceLabs', + appiumVersion: '1.5.3', + deviceName: 'Samsung Galaxy S7 Device', + deviceOrientation: 'portrait', + browserName: 'Chrome', + platformVersion: '6.0', + platformName: 'Android' + }, */ + /* sl_android: { + base: 'SauceLabs', + browserName: 'Android', + deviceName: 'Android Emulator', + deviceOrientation: 'portrait' + }, */ + SL_firefox_latest: { + base: 'SauceLabs', + browserName: 'firefox', + version: 'latest' + }, + SL_chrome_latest: { + base: 'SauceLabs', + browserName: 'chrome', + version: 'latest' + }, + SL_InternetExplorer: { + base: 'SauceLabs', + browserName: 'internet explorer', + version: '11.0' + } /* + sl_windows_edge: { + base: 'SauceLabs', + browserName: 'MicrosoftEdge', + version: 'latest', + platform: 'Windows 10' + }, + sl_macos_safari: { + base: 'SauceLabs', + browserName: 'safari', + platform: 'macOS 10.13', + version: '12.0', + recordVideo: true, + recordScreenshots: true, + screenResolution: '1024x768' + } */ /*, + sl_macos_iphone: { + base: 'SauceLabs', + browserName: 'Safari', + deviceName: 'iPhone SE Simulator', + deviceOrientation: 'portrait', + platformVersion: '10.2', + platformName: 'iOS' + } + 'SL_Chrome': { + base: 'SauceLabs', + browserName: 'chrome', + version: '48.0', + platform: 'Linux' + }, + 'SL_Firefox': { + base: 'SauceLabs', + browserName: 'firefox', + version: '50.0', + platform: 'Windows 10' + }, + 'SL_Safari': { + base: 'SauceLabs', + browserName: 'safari', + platform: 'OS X 10.11', + version: '10.0' + } */ +} + +module.exports = function (config) { + if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) { + console.error( + 'SAUCE_USERNAME and SAUCE_ACCESS_KEY must be provided as environment variables.' + ) + console.warn('Aborting Sauce Labs test') + process.exit(1) + } + const settings = Object.assign(karmaCommon(config), { + // Concurrency level + // how many browser should be started simultaneous + // Saucelabs allow up to 5 concurrent sessions on the free open source tier. + concurrency: 5, + + // this specifies which plugins karma should load + // by default all karma plugins, starting with `karma-` will load + // so if you are really puzzled why something isn't working, then comment + // out plugins: [] - it's here to make karma load faster + // get possible karma plugins by `ls node_modules | grep 'karma-*'` + plugins: ['karma-jasmine', 'karma-sauce-launcher'], + + // logLevel: config.LOG_DEBUG, + + // test results reporter to use + // possible values: 'dots', 'progress' + // available reporters: https://npmjs.org/browse/keyword/karma-reporter + reporters: ['dots', 'saucelabs'], + + customLaunchers: SauceLabsLaunchers, + + // start these browsers + browsers: Object.keys(SauceLabsLaunchers), + sauceLabs: { + testName: 'SVG.js Unit Tests' + // connectOptions: { + // noSslBumpDomains: "all" + // }, + // connectOptions: { + // port: 5757, + // logfile: 'sauce_connect.log' + // }, + } + + // The number of disconnections tolerated. + // browserDisconnectTolerance: 0, // well, sometimes it helps to just restart + // // How long does Karma wait for a browser to reconnect (in ms). + // browserDisconnectTimeout: 10 * 60 * 1000, + // // How long will Karma wait for a message from a browser before disconnecting from it (in ms). ~ macOS 10.12 needs more than 7 minutes + // browserNoActivityTimeout: 20 * 60 * 1000, + // // Timeout for capturing a browser (in ms). On newer versions of iOS simulator (10.0+), the start up time could be between 3 - 6 minutes. + // captureTimeout: 12 * 60 * 1000, // this is useful if saucelabs takes a long time to boot a vm + + // // Required to make Safari on Sauce Labs play nice. + // // hostname: 'karmalocal.dev' + }) + + console.log(settings) + config.set(settings) +} diff --git a/.config/karma.conf.saucelabs.js b/.config/karma.conf.saucelabs.js deleted file mode 100644 index 089f25a..0000000 --- a/.config/karma.conf.saucelabs.js +++ /dev/null @@ -1,145 +0,0 @@ -// Karma configuration -// https://wiki.saucelabs.com/display/DOCS/Platform+Configurator - -// TODO: remove dotenv after local test -require('dotenv').config() - -const karmaCommon = require('./karma.conf.common.js') - -const SauceLabsLaunchers = { - /** Real mobile devices are not available - * Your account does not have access to Android devices. - * Please contact sales@saucelabs.com to add this feature to your account. */ - /* sl_android_chrome: { - base: 'SauceLabs', - appiumVersion: '1.5.3', - deviceName: 'Samsung Galaxy S7 Device', - deviceOrientation: 'portrait', - browserName: 'Chrome', - platformVersion: '6.0', - platformName: 'Android' - }, */ - /* sl_android: { - base: 'SauceLabs', - browserName: 'Android', - deviceName: 'Android Emulator', - deviceOrientation: 'portrait' - }, */ - SL_firefox_latest: { - base: 'SauceLabs', - browserName: 'firefox', - version: 'latest' - }, - SL_chrome_latest: { - base: 'SauceLabs', - browserName: 'chrome', - version: 'latest' - }, - SL_InternetExplorer: { - base: 'SauceLabs', - browserName: 'internet explorer', - version: '11.0' - }/* - sl_windows_edge: { - base: 'SauceLabs', - browserName: 'MicrosoftEdge', - version: 'latest', - platform: 'Windows 10' - }, - sl_macos_safari: { - base: 'SauceLabs', - browserName: 'safari', - platform: 'macOS 10.13', - version: '12.0', - recordVideo: true, - recordScreenshots: true, - screenResolution: '1024x768' - } *//*, - sl_macos_iphone: { - base: 'SauceLabs', - browserName: 'Safari', - deviceName: 'iPhone SE Simulator', - deviceOrientation: 'portrait', - platformVersion: '10.2', - platformName: 'iOS' - } - 'SL_Chrome': { - base: 'SauceLabs', - browserName: 'chrome', - version: '48.0', - platform: 'Linux' - }, - 'SL_Firefox': { - base: 'SauceLabs', - browserName: 'firefox', - version: '50.0', - platform: 'Windows 10' - }, - 'SL_Safari': { - base: 'SauceLabs', - browserName: 'safari', - platform: 'OS X 10.11', - version: '10.0' - } */ -} - -module.exports = function (config) { - if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) { - console.error('SAUCE_USERNAME and SAUCE_ACCESS_KEY must be provided as environment variables.') - console.warn('Aborting Sauce Labs test') - process.exit(1) - } - const settings = Object.assign(karmaCommon(config), { - // Concurrency level - // how many browser should be started simultaneous - // Saucelabs allow up to 5 concurrent sessions on the free open source tier. - concurrency: 5, - - // this specifies which plugins karma should load - // by default all karma plugins, starting with `karma-` will load - // so if you are really puzzled why something isn't working, then comment - // out plugins: [] - it's here to make karma load faster - // get possible karma plugins by `ls node_modules | grep 'karma-*'` - plugins: [ - 'karma-jasmine', - 'karma-sauce-launcher' - ], - - // logLevel: config.LOG_DEBUG, - - // test results reporter to use - // possible values: 'dots', 'progress' - // available reporters: https://npmjs.org/browse/keyword/karma-reporter - reporters: ['dots', 'saucelabs'], - - customLaunchers: SauceLabsLaunchers, - - // start these browsers - browsers: Object.keys(SauceLabsLaunchers), - sauceLabs: { - testName: 'SVG.js Unit Tests' - // connectOptions: { - // noSslBumpDomains: "all" - // }, - // connectOptions: { - // port: 5757, - // logfile: 'sauce_connect.log' - // }, - } - - // The number of disconnections tolerated. - // browserDisconnectTolerance: 0, // well, sometimes it helps to just restart - // // How long does Karma wait for a browser to reconnect (in ms). - // browserDisconnectTimeout: 10 * 60 * 1000, - // // How long will Karma wait for a message from a browser before disconnecting from it (in ms). ~ macOS 10.12 needs more than 7 minutes - // browserNoActivityTimeout: 20 * 60 * 1000, - // // Timeout for capturing a browser (in ms). On newer versions of iOS simulator (10.0+), the start up time could be between 3 - 6 minutes. - // captureTimeout: 12 * 60 * 1000, // this is useful if saucelabs takes a long time to boot a vm - - // // Required to make Safari on Sauce Labs play nice. - // // hostname: 'karmalocal.dev' - }) - - console.log(settings) - config.set(settings) -} diff --git a/.config/polyfillListIE.js b/.config/polyfillListIE.js index dbffbc5..7c7fc33 100644 --- a/.config/polyfillListIE.js +++ b/.config/polyfillListIE.js @@ -14,7 +14,9 @@ CustomEventPolyfill() try { if (!SVGElement.prototype.children) { Object.defineProperty(SVGElement.prototype, 'children', { - get: function () { return children(this) } + get: function () { + return children(this) + } }) } } catch (e) {} diff --git a/.config/pretest.js b/.config/pretest.js index 23b989e..0e6ecb7 100644 --- a/.config/pretest.js +++ b/.config/pretest.js @@ -1,15 +1,17 @@ /* global XMLHttpRequest */ 'use strict' -function get (uri) { +function get(uri) { var xhr = new XMLHttpRequest() xhr.open('GET', uri, false) xhr.send() - if (xhr.status !== 200) { console.error('SVG.js fixture could not be loaded. Tests will fail.') } + if (xhr.status !== 200) { + console.error('SVG.js fixture could not be loaded. Tests will fail.') + } return xhr.responseText } -function main () { +function main() { var style = document.createElement('style') document.head.appendChild(style) style.sheet.insertRule(get('/fixtures/fixture.css'), 0) diff --git a/.config/rollup.config.js b/.config/rollup.config.js index 8391ba0..586e8ea 100644 --- a/.config/rollup.config.js +++ b/.config/rollup.config.js @@ -1,9 +1,9 @@ -import * as pkg from '../package.json' +import pkg from '../package.json' assert { type: 'json' } import babel from '@rollup/plugin-babel' import resolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' import filesize from 'rollup-plugin-filesize' -import { terser } from 'rollup-plugin-terser' +import terser from '@rollup/plugin-terser' const buildDate = Date() @@ -21,17 +21,22 @@ const headerLong = `/*! const headerShort = `/*! ${pkg.name} v${pkg.version} ${pkg.license}*/;` const getBabelConfig = (node = false) => { - let targets = pkg.browserslist const plugins = [ - ['@babel/transform-runtime', { - version: "^7.14.5", - regenerator: false, - useESModules: true - }], - ["polyfill-corejs3", { - "method": "usage-pure" - }] + [ + '@babel/transform-runtime', + { + version: '^7.14.5', + regenerator: false, + useESModules: true + } + ], + [ + 'polyfill-corejs3', + { + method: 'usage-pure' + } + ] ] if (node) { @@ -43,15 +48,20 @@ const getBabelConfig = (node = false) => { babelHelpers: 'runtime', babelrc: false, targets: targets, - presets: [['@babel/preset-env', { - modules: false, - // useBuildins and plugin-transform-runtime are mutually exclusive - // https://github.com/babel/babel/issues/10271#issuecomment-528379505 - // use babel-polyfills when released - useBuiltIns: false, - bugfixes: true, - loose: true - }]], + presets: [ + [ + '@babel/preset-env', + { + modules: false, + // useBuildins and plugin-transform-runtime are mutually exclusive + // https://github.com/babel/babel/issues/10271#issuecomment-528379505 + // use babel-polyfills when released + useBuiltIns: false, + bugfixes: true, + loose: true + } + ] + ], plugins }) } @@ -90,11 +100,14 @@ const classes = [ ] const config = (node, min, esm = false) => ({ - input: (node || esm) ? './src/main.js' : './src/svg.js', + input: node || esm ? './src/main.js' : './src/svg.js', output: { - file: esm ? './dist/svg.esm.js' - : node ? './dist/svg.node.js' - : min ? './dist/svg.min.js' + file: esm + ? './dist/svg.esm.js' + : node + ? './dist/svg.node.js' + : min + ? './dist/svg.min.js' : './dist/svg.js', format: esm ? 'esm' : node ? 'cjs' : 'iife', name: 'SVG', @@ -112,18 +125,20 @@ const config = (node, min, esm = false) => ({ commonjs(), getBabelConfig(node), filesize(), - !min ? {} : terser({ - mangle: { - reserved: classes - }, - output: { - preamble: headerShort - } - }) + !min + ? {} + : terser({ + mangle: { + reserved: classes + }, + output: { + preamble: headerShort + } + }) ] }) // [node, minified, esm] const modes = [[false], [false, true], [true], [false, false, true]] -export default modes.map(m => config(...m)) +export default modes.map((m) => config(...m)) 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 }), -- cgit v1.2.3