Skip to content

Instantly share code, notes, and snippets.

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 ravinggenius/8111b216a25f23c6628589d4f86e5919 to your computer and use it in GitHub Desktop.
Save ravinggenius/8111b216a25f23c6628589d4f86e5919 to your computer and use it in GitHub Desktop.
{
"name": "dual-cjs-mjs-package",
"version": "1.0.0",
"description": "A package that can be both imported as esm and as cjs",
"main": "entry",
"scripts": {
"build": "babel *.mjs **/*.mjs --out-dir ."
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
"babel-plugin-dynamic-import-node": "^1.1.0"
},
"keywords": [],
"author": "",
"license": "ISC"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment