Blame view

node_modules/videojs-flash/scripts/modules.rollup.config.js 959 Bytes
2a09d1a4   liuqimichale   添加宜春 天水 宣化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  /**
   * Rollup configuration for packaging the plugin in a module that is consumable
   * by either CommonJS (e.g. Node or Browserify) or ECMAScript (e.g. Rollup).
   *
   * These modules DO NOT include their dependencies as we expect those to be
   * handled by the module system.
   */
  import babel from 'rollup-plugin-babel';
  import json from 'rollup-plugin-json';
  
  export default {
    moduleName: 'videojsFlash',
    entry: 'src/plugin.js',
    external: ['video.js'],
    globals: {
      'video.js': 'videojs'
    },
    legacy: true,
    plugins: [
      json(),
      babel({
        babelrc: false,
        exclude: 'node_modules/**',
        presets: [
          'es3',
          ['es2015', {
            loose: true,
            modules: false
          }]
        ],
        plugins: [
          'external-helpers',
          'transform-object-assign'
        ]
      })
    ],
    targets: [
      {dest: 'dist/videojs-flash.cjs.js', format: 'cjs'},
      {dest: 'dist/videojs-flash.es.js', format: 'es'}
    ]
  };