Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make serialport module optional (#1841)
serialport module has been optional, as it is platform specific and its install may fail but otherwise the server would be in working order. However when converting serialports.js to ts using import had made it a hard dependency - the server would not start without it, even if npm install had completed without errors but without serialport still installed. Use dynamic require to load it so that even if the module is missing the server starts.
- Loading branch information