-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
I just attempted to update from electron-builder 25.1.8 to 26.0.6 and received the RangeError: Maximum call stack size exceeded error from the node-module-collector (full error below). The irony of that is that we don't even need electron-builder to create a list of node_modules to include, as we explicitly exclude them from being packaged with !node_modules/**/* in the files array, as we bundle the JavaScript code before calling electron-builder.
So this issue is a bug report but also an ask for electron-builder to check the files array before collecting the node_modules, so that it can avoid doing work that isn't necessary. If checking the files array isn't possible a boolean config option to skip the node_modules collection would also work.
RangeError: Maximum call stack size exceeded
at flatten (...\node_modules\app-builder-lib\src\node-module-collector\nodeModulesCollector.ts:54:21)
at flatten (...\node_modules\app-builder-lib\src\node-module-collector\nodeModulesCollector.ts:69:9)
at flatten (...\node_modules\app-builder-lib\src\node-module-collector\nodeModulesCollector.ts:69:9)
at flatten (...\node_modules\app-builder-lib\src\node-module-collector\nodeModulesCollector.ts:69:9)
at flatten (...\node_modules\app-builder-lib\src\node-module-collector\nodeModulesCollector.ts:69:9)
at flatten (...\node_modules\app-builder-lib\src\node-module-collector\nodeModulesCollector.ts:69:9)
at flatten (...\node_modules\app-builder-lib\src\node-module-collector\nodeModulesCollector.ts:69:9)
at flatten (...\node_modules\app-builder-lib\src\node-module-collector\nodeModulesCollector.ts:69:9)
at flatten (...\node_modules\app-builder-lib\src\node-module-collector\nodeModulesCollector.ts:69:9)
at flatten (...\node_modules\app-builder-lib\src\node-module-collector\nodeModulesCollector.ts:69:9)