polyfill-plan is an independent package. It is not affiliated with babel-polyfill or its maintainers.
import { createPolyfillPlan, generatePolyfillEntry } from "polyfill-plan";
const plan = createPolyfillPlan({ features: ["promise", "array-from"], regenerator: true });
const entrySource = generatePolyfillEntry(plan);