Skip to content

Instantly share code, notes, and snippets.

@sebinsua
Last active November 29, 2017 11:14
Show Gist options
  • Save sebinsua/688f1d84eec9d82258ed8fc72b124101 to your computer and use it in GitHub Desktop.
Save sebinsua/688f1d84eec9d82258ed8fc72b124101 to your computer and use it in GitHub Desktop.
Description of package exports.
Build Consumer Description Key in package.json
CommonJS
(main version)
Node/bundlers Transpiled and contains require and module.exports. main
ES module Modern browsers/bundlers Transpiled apart from import and export statements. module
UMD Old browsers Transpiled, minified, containing IIFE's and has all dependencies baked-in. browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment