1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00
Oinktube/node_modules/can-autoplay/rollup.config.js
Daniel 2a9630258f https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556
Also check the lang in case insensitive
2022-03-14 14:28:38 -03:00

29 lines
734 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
}]
]
})
]
}
];