From 919c7185e19c9c340ce8f0b99bd98f22b7211a5f Mon Sep 17 00:00:00 2001 From: CMEONE Date: Sat, 5 Jun 2021 11:30:34 -0700 Subject: [PATCH] Fixed installAll options bug --- require-browser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/require-browser.js b/require-browser.js index 39d88ae..2ec6221 100644 --- a/require-browser.js +++ b/require-browser.js @@ -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/"; }