Skip to content

Commit

Permalink
Fixed installAll options bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CMEONE committed Jun 5, 2021
1 parent 1b6ffad commit 919c718
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions require-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const { install, installAll, require, requireBrowser, _getInstalledData } = (fun
if(options == null || options.constructor != Object) {
options = {};
}
options = {...options};
if(options.node_modules == null || typeof options.node_modules != "string") {
options.node_modules = "/node_modules/";
}
Expand Down

0 comments on commit 919c718

Please sign in to comment.