mirror of
https://github.com/iv-org/videojs-vtt-thumbnails.git
synced 2025-12-22 20:00:55 -05:00
Initial commit
This commit is contained in:
commit
f0a97f8e13
23 changed files with 1020 additions and 0 deletions
47
scripts/modules.rollup.config.js
Normal file
47
scripts/modules.rollup.config.js
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
/**
|
||||
* 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 {
|
||||
name: 'videojsVttThumbnails',
|
||||
input: 'src/plugin.js',
|
||||
output: [{
|
||||
file: 'dist/videojs-vtt-thumbnails.cjs.js',
|
||||
format: 'cjs'
|
||||
}, {
|
||||
file: 'dist/videojs-vtt-thumbnails.es.js',
|
||||
format: 'es'
|
||||
}],
|
||||
external: [
|
||||
'global',
|
||||
'global/document',
|
||||
'global/window',
|
||||
'video.js'
|
||||
],
|
||||
globals: {
|
||||
'video.js': 'videojs'
|
||||
},
|
||||
plugins: [
|
||||
json(),
|
||||
babel({
|
||||
babelrc: false,
|
||||
exclude: 'node_modules/**',
|
||||
presets: [
|
||||
['es2015', {
|
||||
loose: true,
|
||||
modules: false
|
||||
}]
|
||||
],
|
||||
plugins: [
|
||||
'external-helpers',
|
||||
'transform-object-assign'
|
||||
]
|
||||
})
|
||||
]
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue