Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
🐛 Fix uglify cannot handle es6 notation
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 committed Feb 16, 2018
1 parent afce410 commit 7a0b514
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"postbuild:browsertest": "rm -r browsertest/src browsertest/test",
"prebuild:node": "rm -r dist-node/* || mkdir dist-node | echo",
"build:node": "npm run babel",
"prebuild:browser": "rm ./dist-browser/lisk-js.js ./dist-browser/lisk-js.min.js | echo",
"prebuild:browser": "rm ./dist-browser/lisk-js.js ./dist-browser/lisk-js.min.js | echo",
"build:browser": "npm run babel && npm run browserify && npm run uglify",
"prebuild": "npm run prebuild:node && npm run prebuild:browser",
"build": "npm run babel && npm run browserify && npm run uglify",
Expand Down Expand Up @@ -80,11 +80,11 @@
"babel-plugin-transform-runtime": "=6.23.0",
"babel-preset-env": "=1.6.0",
"browserify": "=16.0.0",
"chai": "=4.1.2",
"chai-as-promised": "=7.1.1",
"coveralls": "=3.0.0",
"cypress": "=0.20.3",
"eslint": "=4.16.0",
"chai": "=4.1.2",
"chai-as-promised": "=7.1.1",
"eslint-config-airbnb-base": "=11.3.1",
"eslint-config-lisk-base": "=0.1.0",
"eslint-plugin-import": "=2.7.0",
Expand All @@ -97,8 +97,7 @@
"prettier": "=1.8.2",
"rewireify": "=0.2.5",
"sinon": "=4.1.2",
"uglify-js": "=3.3.10"
"sinon-chai": "=2.14.0",
"sinon": "=2.2.0"
"uglify-es": "=3.3.9"
}
}
3 changes: 1 addition & 2 deletions test/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ Assertion.addProperty('integer', function handleAssert() {
});
/* eslint-enable no-underscore-dangle */

[chaiAsPromised, sinonChai].forEach(plugin => chai.use(plugin));
[sinonChai, chaiAsPromised].forEach(plugin => chai.use(plugin));

global.should = chai.should();
global.sinon = sinon;
global.sandbox = sinon.sandbox.create();

Expand Down

0 comments on commit 7a0b514

Please sign in to comment.