Skip to content

Commit

Permalink
Revert "fix: issues #386 (#390)"
Browse files Browse the repository at this point in the history
This reverts commit 5b5ae3e.
  • Loading branch information
popomore committed Apr 3, 2018
1 parent a0aed77 commit 028ec09
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 471 deletions.
4 changes: 2 additions & 2 deletions browser-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function build(options, callback) {
"global": true,
"presets": ["es2015"],
"plugins": ["transform-runtime"],
"only": ['lib/*', 'node_modules/co-gather/*', 'shims/*', 'shims/crypto/*'],
"only": ['lib/*', 'node_modules/co-gather/*', 'shims/*'],
}).transform(aliasify, {
global: true,
aliases: {
'zlib': false,
'iconv-lite': false,
'crypto': './shims/crypto/crypto.js',
'crypto': './shims/crypto.js',
},
verbose: false
}).bundle(function(err, data) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"mime": "./shims/mime.js",
"urllib": "./shims/xhr.js",
"utility": "./shims/utility.js",
"crypto": "./shims/crypto/crypto.js",
"crypto": "./shims/crypto.js",
"fs": false,
"child_process": false
},
Expand Down Expand Up @@ -66,6 +66,7 @@
"browserify": "^13.3.0",
"co-fs": "^1.2.0",
"co-mocha": "^1.2.1",
"crypto-browserify": "^1.0.9",
"crypto-js": "^3.1.9-1",
"filereader": "^0.10.3",
"git-pre-hooks": "^1.2.0",
Expand Down
2 changes: 2 additions & 0 deletions shims/crypto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// use crypto-browserify@1.0.9 to minify dist size
module.exports = require('crypto-browserify');
90 changes: 0 additions & 90 deletions shims/crypto/crypto.js

This file was deleted.

35 changes: 0 additions & 35 deletions shims/crypto/helpers.js

This file was deleted.

163 changes: 0 additions & 163 deletions shims/crypto/md5.js

This file was deleted.

Loading

0 comments on commit 028ec09

Please sign in to comment.