1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /**
- * Rollup configuration for packaging the plugin in a module that is consumable
- * as the `src` of a `script` tag or via AMD or similar client-side loading.
- *
- * This module DOES include its dependencies.
- */
- import babel from 'rollup-plugin-babel';
- import commonjs from 'rollup-plugin-commonjs';
- import json from 'rollup-plugin-json';
- import resolve from 'rollup-plugin-node-resolve';
- export default {
- entry: 'src/plugin.js',
- output: {
- file: 'dist/videojs-flash.js',
- format: 'umd',
- name: 'videojsFlash',
- globals: {
- 'video.js': 'videojs'
- }
- },
- external: ['video.js'],
- legacy: true,
- plugins: [
- 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'
- ]
- })
- ]
- };
|