looks like the es module output isn't going to be possible atm with parcel. To make the es modules run properly in node, you have to add the .js extension to all imports (yeah it's a bit ugly in ts, when you are actually importing a ts file but that's how it works), but parcel is unable to resolve those files then (it tries to find the .js file literally), so the shared code breaks either the node run or the parcel build. I could try webpack but won't bother for now.
looks like the es module output isn't going to be possible atm with parcel. To make the es modules run properly in node, you have to add the .js extension to all imports (yeah it's a bit ugly in ts, when you are actually importing a ts file but that's how it works), but parcel is unable to resolve those files then (it tries to find the .js file literally), so the shared code breaks either the node run or the parcel build. I could try webpack but won't bother for now.