Skip to content

Commit

Permalink
fix(development): rollup watch, via npm run watch, should work for …
Browse files Browse the repository at this point in the history
…es/cjs (#484)
  • Loading branch information
squarebracket authored and brandonocasey committed May 2, 2019
1 parent 04e65d0 commit 0e98b0e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ const umdPlugins = [
babel(),
];

const externals = [
'aes-decrypter',
'global/document',
'global/window',
'm3u8-parser',
'mpd-parser',
'mux.js/lib/mp4',
'mux.js/lib/mp4/probe',
'mux.js/lib/tools/mp4-inspector',
'mux.js/lib/tools/ts-inspector.js',
'url-toolkit',
'video.js'
];

const onwarn = (warning) => {
if (warning.code === 'UNUSED_EXTERNAL_IMPORT' ||
warning.code === 'UNRESOLVED_IMPORT') {
Expand Down Expand Up @@ -101,6 +115,7 @@ export default [
format: 'cjs',
banner
}],
external: externals,
onwarn
}, {
input: 'src/videojs-http-streaming.js',
Expand All @@ -117,6 +132,7 @@ export default [
format: 'es',
banner
}],
external: externals,
onwarn
}
];

0 comments on commit 0e98b0e

Please sign in to comment.