@soomo/wicg-inert
Version:
A polyfill for the proposed inert API
50 lines (48 loc) • 807 B
JavaScript
import {uglify} from 'rollup-plugin-uglify';
import babel from 'rollup-plugin-babel';
export default [
{
input: 'src/inert.js',
output: {
file: 'dist/inert.esm.js',
format: 'esm',
},
plugins: [
babel({
exclude: 'node_modules/**',
}),
],
},
{
input: 'src/inert.js',
output: {
file: 'dist/inert.js',
format: 'umd',
amd: {
id: 'inert',
},
},
plugins: [
babel({
exclude: 'node_modules/**',
}),
],
},
{
input: 'src/inert.js',
output: {
file: 'dist/inert.min.js',
format: 'umd',
amd: {
id: 'inert',
},
sourcemap: true,
},
plugins: [
babel({
exclude: 'node_modules/**',
}),
uglify(),
],
},
];