Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var config = require('./rollup');
var uglify = require('rollup-plugin-uglify');
var typescript = require('rollup-plugin-ts').default;
var version = process.env.VERSION || require('../package.json').version;
var banner = `/**
* Tuex v${version}
* (c) ${new Date().getFullYear()} Alexey Iskhakov
* @license MIT
*/
`;
export default config.concat(
config.map(c => {
var _c = { ...c };
_c.output = { ..._c.output };
_c.output.file = _c.output.file.replace('.js', '.min.js');
if (_c.output.format !== 'umd')