Skip to content

Commit

Permalink
Fixing crypto require for older version of decimal, needed for a proj…
Browse files Browse the repository at this point in the history
…ect I'm working on
  • Loading branch information
andrewthoughtmachine committed Feb 17, 2016
1 parent bc66aa9 commit 50250d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -4046,7 +4046,7 @@
if ( !crypto ) {

try {
crypto = require('crypto');
crypto = require('cry' + 'pto');
} catch (e) {}
}

Expand Down

2 comments on commit 50250d8

@tantawyk
Copy link

Choose a reason for hiding this comment

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

@MikeMcl can you please explain what difference this commit made?

@MikeMcl
Copy link
Owner

@MikeMcl MikeMcl commented on 50250d8 Jul 4, 2017

Choose a reason for hiding this comment

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

As I remember it, it stops bundlers such as Browserify adding the large crypto module shim to a bundle.
See #5 and #42

Please sign in to comment.