install-nix-action/node_modules/diff/rollup.config.js
Domen Kožar 70742d22d9
v6
2019-11-19 17:50:30 +01:00

24 lines
464 B
JavaScript

import babel from 'rollup-plugin-babel';
import pkg from './package.json';
export default [
// browser-friendly UMD build
{
input: 'src/index.js',
output: [
{
name: 'Diff',
file: pkg.browser,
format: 'umd'
},
{ file: pkg.module, format: 'es' }
],
plugins: [
babel({
babelrc: false,
presets: [['@babel/preset-env', { targets: {ie: '11'}, modules: false }]],
})
]
}
];