Skip to content

Commit ad6f292

Browse files
squarebracketbrandonocasey
authored andcommitted
fix(development): rollup watch, via npm run watch, should work for es/cjs (#484)
1 parent 358877f commit ad6f292

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

scripts/rollup.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ const umdPlugins = [
3131
babel(),
3232
];
3333

34+
const externals = [
35+
'aes-decrypter',
36+
'global/document',
37+
'global/window',
38+
'm3u8-parser',
39+
'mpd-parser',
40+
'mux.js/lib/mp4',
41+
'mux.js/lib/mp4/probe',
42+
'mux.js/lib/tools/mp4-inspector',
43+
'mux.js/lib/tools/ts-inspector.js',
44+
'url-toolkit',
45+
'video.js'
46+
];
47+
3448
const onwarn = (warning) => {
3549
if (warning.code === 'UNUSED_EXTERNAL_IMPORT' ||
3650
warning.code === 'UNRESOLVED_IMPORT') {
@@ -101,6 +115,7 @@ export default [
101115
format: 'cjs',
102116
banner
103117
}],
118+
external: externals,
104119
onwarn
105120
}, {
106121
input: 'src/videojs-http-streaming.js',
@@ -117,6 +132,7 @@ export default [
117132
format: 'es',
118133
banner
119134
}],
135+
external: externals,
120136
onwarn
121137
}
122138
];

0 commit comments

Comments
 (0)