Comment by crooked-v

8 years ago

My intent is less "code structure", and more "most of the pieces you need to make a Node project also work in the browser". Imports/exports and Parcel would get liamilan most of the way towards being able to do...

   if (window) {
     document.write(...)
   } else {
     console.log(..)
   }

...and have it just work, without having to write everything twice.