electron-log
                                
                                
                                
                                    electron-log copied to clipboard
                            
                            
                            
                        Can't use electron-log in the preload script while global sandbox is turned on
when trying to import electron-log with global sandbox enabled I get this error in the preload script which is causing it to fail to load.
Error: module not found: os
removing electrton-log import seems to take care of it, is there a way to prevent electron-log from loading 'os' in for the preload script?
Currently, I have no plans to support sandbox mode. But I'll think on the feature in the next major version.
@megahertz this isn't just an issue with sandbox. It breaks with the less restrictive contextIsolation as well. Even after adding fallback entries in Webpack, it continues to throw fatal errors.
Merely the following line crashes everything if put into preload:
import log from 'electron-log';
                                    
                                    
                                    
                                
Given that the recommended practice from Electron is to sandbox, and that contextIsolation is on by default, I would hope this is a feature that could be added!
@eliw00d I'm already thinking on that.
Done in v5