Minimizing node_modules size
My company has developed a product around the 2S+ running a rather simple Node (8) application. However, the node_modules folder contains a lot of modules/submodules not being used by us and hence we need external flash to run the application right now.
Is there a way to scan the application and automatically remove any unused code from node_modules? We are using the Azure IoT device module which is big, and I removed some unused parts manually. But I'd rather have this process automated to save time and errors and to free up as much flash space as possible. It bothers me to install an eMMC chip just to hold unused code