1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 10:19:24 +02:00
Oinktube/node_modules/can-autoplay/rollup.config.js
Daniel d4d042e041 Moving to node_modules folder to make easier to upgrade
trying to move from Bootstrap 3 to Bootstrap 5
2021-10-26 14:52:45 -03:00

29 lines
705 B
JavaScript

import babel from 'rollup-plugin-babel';
import pkg from './package.json';
export default [
// Browser-friendly UMD build
// CommonJS (for Node) and ES module (for bundlers) build.
{
input: 'lib/index.js',
output: [
{ file: 'build/can-autoplay.js', format: 'umd', name: 'canAutoplay' },
{ file: pkg.main, format: 'cjs' },
{ file: pkg.module, format: 'es' }
],
plugins: [
babel({
babelrc: false,
exclude: ['node_modules/**'],
presets: [
['env', {
targets: {
browsers: ['last 2 versions', 'safari >= 8', 'ie 11']
},
modules: false
}]
]
})
]
}
];