In accordance with the present invention, disclosed herein is a kit comprising a first mixture comprising a pharmaceutically acceptable polar liquid and a fully or nearly fully dissolved biodegradable polymer a second mixture comprising a pharmaceutically acceptable non-polar liquid and a mixing device configured to mix the first mixture and second mixture, thereby forming a droplet comprising the biodegradable polymer. Also disclosed herein are methods of producing a microparticle in vivo in a subject.