mirror of
https://github.com/iv-org/videojs-vtt-thumbnails.git
synced 2024-10-01 03:05:36 -04:00
60 lines
1.2 KiB
JavaScript
60 lines
1.2 KiB
JavaScript
/**
|
|
* 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 {
|
|
name: 'videojsVttThumbnailsTests',
|
|
input: 'test/**/*.test.js',
|
|
output: {
|
|
file: 'test/dist/bundle.js',
|
|
format: 'iife'
|
|
},
|
|
external: [
|
|
'qunit',
|
|
'qunitjs',
|
|
'sinon',
|
|
'video.js'
|
|
],
|
|
globals: {
|
|
'qunit': 'QUnit',
|
|
'qunitjs': 'QUnit',
|
|
'sinon': 'sinon',
|
|
'video.js': 'videojs'
|
|
},
|
|
plugins: [
|
|
multiEntry({
|
|
exports: false
|
|
}),
|
|
resolve({
|
|
browser: true,
|
|
main: true,
|
|
jsnext: true
|
|
}),
|
|
json(),
|
|
commonjs({
|
|
sourceMap: false
|
|
}),
|
|
babel({
|
|
babelrc: false,
|
|
exclude: 'node_modules/**',
|
|
presets: [
|
|
['es2015', {
|
|
loose: true,
|
|
modules: false
|
|
}]
|
|
],
|
|
plugins: [
|
|
'external-helpers',
|
|
'transform-object-assign'
|
|
]
|
|
})
|
|
]
|
|
};
|