Skip to content

Commit

Permalink
fix(pillarbox): eme plugin name does not survive minification
Browse files Browse the repository at this point in the history
In the `VERSION` property, when `parceljs` performs minification
the plugin name is changed to a random value.

- set the `eme` key manually instead of using `videojs.getPlugin('eme').name`
  • Loading branch information
amtins committed Oct 23, 2023
1 parent c0a03cb commit 4df0b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pillarbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Pillarbox extends videojs {
pillarbox: version,
videojs: videojs.VERSION,
[videojs.VhsSourceHandler.name]: videojs.VhsSourceHandler.VERSION,
[videojs.getPlugin('eme').name]: videojs.getPlugin('eme').VERSION,
eme: videojs.getPlugin('eme').VERSION,
};
}
}
Expand Down

0 comments on commit 4df0b65

Please sign in to comment.