Skip to content

Instantly share code, notes, and snippets.

@rtsao
Last active July 12, 2017 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtsao/3e9e8d9eaa3f84f257d20a908b5aa502 to your computer and use it in GitHub Desktop.
Save rtsao/3e9e8d9eaa3f84f257d20a908b5aa502 to your computer and use it in GitHub Desktop.
Universal JS library entry proposal
{
"main": "./dist/node.cjs.js",
"module": "./dist/node.es.js",
"browser": {
"./dist/node.cjs.js": "./dist/browser.cjs.js",
"./dist/node.es.js": "./dist/browser.es.js"
},
"es2015": {
"./dist/node.cjs.js": "./dist/node.cjs.es2015.js",
"./dist/node.es.js": "./dist/node.es.es2015.js",
"./dist/browser.cjs.js": "./dist/browser.cjs.es2015.js",
"./dist/browser.es.js": "./dist/browser.es.es2015.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment