Skip to content

Instantly share code, notes, and snippets.

@retraigo
Created March 5, 2022 05:45
Show Gist options
  • Save retraigo/dd498c6625d7c78a592e151cb132e944 to your computer and use it in GitHub Desktop.
Save retraigo/dd498c6625d7c78a592e151cb132e944 to your computer and use it in GitHub Desktop.
Why are all my packages in ESM?
  • I don't really want to add exports for require() due to potential unwanted behavior.
  • I am writing packages that could run in multiple runtimes, whether it's a browser, node or deno. Using CommonJS limits this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment