systeminformation
systeminformation copied to clipboard
OS specific exports
Is your feature request related to a problem? Please describe. When bundling my app for distribution we bundle up all the deps into a single js. Because of how this library is written we end up including all the non linux code. The issue with that is we only support linux so we're shipping a lot of extra code with no real benefit.
Describe the solution you'd like
A way to use import si from 'systeminformation/linux';
as well as the normal import.
@OmgImAlexis I like this idea! Which means that this needs quite significant refactoring. And this also makes sense to do it while I am now making the TS refactoring ... I will try to make a first partial implementation.
So my idea with this would be to make an entry file and use the minifying and treeshaking option of esbuild to handle this. Let's wait for the TS conversion and then I'll show you my idea.