In 9.3 we are seeing the base themes not always generating the optimized items. The weird thing it will create the item, but never have the code attached.
We see the following in the logs. Why is the core database even required? The basic install does not include it. I think it might be something else as we didn't have the core database definition before and sometimes the process works.
Could create optimized item in/sitecore/media library/Base Themes/Commerce Main Theme/Scripts: Could not find configuration node: databases/database[@id='core']