see type definitions here
npm i dynamic-umd-loader
load dayjs
from jsdelivr
import loader from 'dynamic-umd-loader';
loader('https://cdn.jsdelivr.net/npm/[email protected]/dayjs.min.js', 'dayjs').then(
(dayjs) => {
console.log(dayjs().from());
}
);