Use ESM import for thumbnail_placeholder.svg instead of require
Pull Request Type
[x] Other - Refactoring
Description
Using require for it means that webpack simulates the commonjs import at runtime, however switching to static ESM imports means that it just becomes a normal const variable that is referenced in 4 places.
Testing
In the general settings set the thumbnail preference to hidden and check that the thumbnail placeholder still shows up.
Use ESM import for thumbnail_placeholder.svg instead of require
Pull Request Type
Description
Using require for it means that webpack simulates the commonjs import at runtime, however switching to static ESM imports means that it just becomes a normal
const
variable that is referenced in 4 places.Testing
In the general settings set the thumbnail preference to hidden and check that the thumbnail placeholder still shows up.
Desktop