Skip to content

Commit 7c5a066

Browse files
forbesjogkatsev
authored andcommitted
fix: build core script files as UMD (videojs#5220)
1 parent a3fd06a commit 7c5a066

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rollup.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ export default cliargs => [
154154
{
155155
input: 'src/js/video.js',
156156
output: {
157-
format: 'cjs',
157+
format: 'umd',
158+
name: 'videojs',
158159
file: 'dist/alt/video.core.js',
159160
strict: false,
160161
banner
@@ -174,7 +175,8 @@ export default cliargs => [
174175
{
175176
input: 'src/js/video.js',
176177
output: {
177-
format: 'cjs',
178+
format: 'umd',
179+
name: 'videojs',
178180
file: 'dist/alt/video.core.novtt.js',
179181
strict: false,
180182
banner: compiledLicense(Object.assign({includesVtt: true}, bannerData))

0 commit comments

Comments
 (0)