I started providing a solution that is discussed in the next page:
If you are still interested about ESM support for Prose Mirror, I suggest joining this thread.