package: add babel compilation.
This commit is contained in:
parent
aedbac0be6
commit
ed66af64ea
9
.babelrc
Normal file
9
.babelrc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"presets": ["es2015"],
|
||||||
|
"plugins": [
|
||||||
|
["transform-runtime", {
|
||||||
|
"polyfill": true,
|
||||||
|
"regenerator": true
|
||||||
|
}]
|
||||||
|
]
|
||||||
|
}
|
||||||
1
Makefile
1
Makefile
@ -1,5 +1,6 @@
|
|||||||
all:
|
all:
|
||||||
@npm run browserify
|
@npm run browserify
|
||||||
|
@npm run uglify
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@npm run clean
|
@npm run clean
|
||||||
|
|||||||
@ -48,6 +48,11 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "13.1.0",
|
"browserify": "13.1.0",
|
||||||
|
"babelify": "7.3.0",
|
||||||
|
"babel-preset-es2015": "6.14.0",
|
||||||
|
"babel-polyfill": "6.13.0",
|
||||||
|
"babel-plugin-transform-runtime": "6.12.0",
|
||||||
|
"babel-plugin-transform-regenerator": "6.14.0",
|
||||||
"hash.js": "1.0.3",
|
"hash.js": "1.0.3",
|
||||||
"jsdoc": "3.4.0",
|
"jsdoc": "3.4.0",
|
||||||
"level-js": "2.2.4",
|
"level-js": "2.2.4",
|
||||||
@ -69,5 +74,8 @@
|
|||||||
"net": "./browser/empty.js",
|
"net": "./browser/empty.js",
|
||||||
"bcoin-native": "./browser/empty.js",
|
"bcoin-native": "./browser/empty.js",
|
||||||
"secp256k1": "./browser/empty.js"
|
"secp256k1": "./browser/empty.js"
|
||||||
|
},
|
||||||
|
"browserify": {
|
||||||
|
"transform": ["babelify"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user