Why does -Pproduction add '-es6' to resource paths?

I have a v14.1.25 app with an animation component (compani 1.1.0)

When I try to deploy to production the paths to the compani resources now have a -es6 suffix changing them from ‘frontend’ to ‘frontend-es6’ and hence failing.

Wtaf?

Can anyone explain this to me?

Does anyone have a workaround?

Thanks.

Images showing the app with the -Pproduction and without
18289825.png
18289828.png