Ends up being compiled and included as both static/js/_commons.js and static/js/media.js. Not sure why it's duplicated but that's a bunch of extra code that doesn't need to be downloaded twice.
To Reproduce
Steps to reproduce the issue:
Add some kind of unique code to frontend/src/static/js/components/video-player/VideoPlayer.jsx like console.log("This shouldn't be here twice")
Rebuild the frontend
In a browser, navigate to a video. Notice that both files are downloaded, and both contain your unique code from step 1
Expected behavior
Code shouldn't be duplicated across both files.
Environment (please complete the following information):
OS: Server Ubuntu, client Gentoo
Installation method: single server install
Browser, if applicable: Chromium, but not really applicable
Describe the issue So, in trying to debug #926, I found that this code:
https://github.com/mediacms-io/mediacms/blob/main/frontend/src/static/js/components/video-player/VideoPlayer.jsx
Ends up being compiled and included as both
static/js/_commons.js
andstatic/js/media.js
. Not sure why it's duplicated but that's a bunch of extra code that doesn't need to be downloaded twice.To Reproduce Steps to reproduce the issue:
frontend/src/static/js/components/video-player/VideoPlayer.jsx
likeconsole.log("This shouldn't be here twice")
Expected behavior Code shouldn't be duplicated across both files.
Environment (please complete the following information):