raimohanska / ourboard

An online whiteboard
Other
763 stars 58 forks source link

Use es modules all around #111

Closed googol closed 3 years ago

googol commented 3 years ago

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.