mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
29 lines
705 B
JavaScript
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
|
|
}]
|
|
]
|
|
})
|
|
]
|
|
}
|
|
];
|