1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import babel from 'rollup-plugin-babel';
|
8 | import commonjs from 'rollup-plugin-commonjs';
|
9 | import json from 'rollup-plugin-json';
|
10 | import resolve from 'rollup-plugin-node-resolve';
|
11 |
|
12 | export 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 | };
|