UNPKG

1.04 kBJavaScriptView Raw
1/**
2 * Rollup configuration for packaging the plugin in a module that is consumable
3 * as the `src` of a `script` tag or via AMD or similar client-side loading.
4 *
5 * This module DOES include its dependencies.
6 */
7import babel from 'rollup-plugin-babel';
8import commonjs from 'rollup-plugin-commonjs';
9import json from 'rollup-plugin-json';
10import resolve from 'rollup-plugin-node-resolve';
11
12export default {
13 moduleName: 'videojsFlash',
14 entry: 'src/plugin.js',
15 dest: 'dist/videojs-flash.js',
16 format: 'umd',
17 external: ['video.js'],
18 globals: {
19 'video.js': 'videojs'
20 },
21 legacy: true,
22 plugins: [
23 resolve({
24 browser: true,
25 main: true,
26 jsnext: true
27 }),
28 json(),
29 commonjs({
30 sourceMap: false
31 }),
32 babel({
33 babelrc: false,
34 exclude: 'node_modules/**',
35 presets: [
36 'es3',
37 ['es2015', {
38 loose: true,
39 modules: false
40 }]
41 ],
42 plugins: [
43 'external-helpers',
44 'transform-object-assign'
45 ]
46 })
47 ]
48};