Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Babel #1064

Closed
wants to merge 1 commit into from
Closed

Babel #1064

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env"]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bin": {
"jsipfs": "src/cli/bin.js"
},
"main": "src/core/index.js",
"main": "lib/index.js",
"browser": {
"./src/core/components/init-assets.js": false,
"./src/core/runtime/config-nodejs.json": "./src/core/runtime/config-browser.json",
Expand All @@ -19,6 +19,7 @@
"npm": ">=3.0.0"
},
"scripts": {
"babel": "babel dist -d lib",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this create a a file to dist/index.es5.js instead?

"lint": "aegir lint",
"build": "aegir build",
"test": "aegir test -t node -t browser --no-cors",
Expand Down