Repost :
esinstall – Convert any package to ESM.
Snowpack’s internal CJS->ESM package converter finally has a proper API, simple enough to fit in a tweet:
import {install} from ‘esinstall’;
await install([‘react’, ‘react-dom’, ‘redux’, ‘lodash’]); https://t.co/wa4VAfK10G— Pika 📦 (@pikapkg) September 17, 2020