From 0e98b0e0682ac7abb91f1e8a848325a4a13709d3 Mon Sep 17 00:00:00 2001 From: Chuck Wilson Date: Thu, 2 May 2019 12:40:27 -0400 Subject: [PATCH] fix(development): rollup watch, via `npm run watch`, should work for es/cjs (#484) --- scripts/rollup.config.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/rollup.config.js b/scripts/rollup.config.js index 7398b2d82..9035b7784 100644 --- a/scripts/rollup.config.js +++ b/scripts/rollup.config.js @@ -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') { @@ -101,6 +115,7 @@ export default [ format: 'cjs', banner }], + external: externals, onwarn }, { input: 'src/videojs-http-streaming.js', @@ -117,6 +132,7 @@ export default [ format: 'es', banner }], + external: externals, onwarn } ];