Blame view

node_modules/videojs-flash/scripts/test.rollup.config.js 1.17 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
  /**
   * Rollup configuration for packaging the plugin in a test bundle.
   *
   * This includes all dependencies for both the plugin and its tests.
   */
  import babel from 'rollup-plugin-babel';
  import commonjs from 'rollup-plugin-commonjs';
  import json from 'rollup-plugin-json';
  import multiEntry from 'rollup-plugin-multi-entry';
  import resolve from 'rollup-plugin-node-resolve';
  
  export default {
    moduleName: 'videojsFlashTests',
    entry: 'test/**/*.test.js',
    dest: 'test/dist/bundle.js',
    format: 'iife',
    external: [
      'qunit',
      'qunitjs',
      'sinon',
      'video.js'
    ],
    globals: {
      'qunit': 'QUnit',
      'qunitjs': 'QUnit',
      'sinon': 'sinon',
      'video.js': 'videojs'
    },
    legacy: true,
    plugins: [
      multiEntry({
        exports: false
      }),
      resolve({
        browser: true,
        main: true,
        jsnext: true
      }),
      json(),
      commonjs({
        sourceMap: false
      }),
      babel({
        babelrc: false,
        exclude: 'node_modules/**',
        presets: [
          'es3',
          ['es2015', {
            loose: true,
            modules: false
          }]
        ],
        plugins: [
          'external-helpers',
          'transform-object-assign'
        ]
      })
    ]
  };