if you're using a proprietary e-bike battery like bosch or shimano, you may have to use an AC charger and batch swap between two batteries, but you should expect to use more than you charge, so that's not as useful as a range extension when only collecting 10-50W.