videojs-share
Version:
Share plugin for video.js
63 lines (61 loc) • 1.28 kB
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 string from 'rollup-plugin-string';
import json from 'rollup-plugin-json';
import multiEntry from 'rollup-plugin-multi-entry';
import resolve from 'rollup-plugin-node-resolve';
export default {
moduleName: 'videojsShareTests',
entry: 'test/plugin.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: [
commonjs({
sourceMap: false
}),
multiEntry({
exports: false
}),
resolve({
browser: true,
main: true,
jsnext: true
}),
string({
include: 'src/icons/*.svg'
}),
json(),
babel({
babelrc: false,
exclude: 'node_modules/**',
presets: [
['es2015', {
loose: true,
modules: false
}]
],
plugins: [
'external-helpers',
'transform-object-assign'
]
})
]
};