jlengstorf/get-share-image

export valid ESM so this works better with modern builds

Open

#17 opened on Nov 5, 2020

View on GitHub
 (3 comments) (1 reaction) (0 assignees)TypeScript (28 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (187 stars)
PR merge metrics
 (PR metrics pending)

Description

right now we have to do this:

import getShareImageModule from '@jlengstorf/get-share-image';

const getShareImage = getShareImageModule.default;

that's fine, but not great

to fix it we need to update the TS export to target ESM properly (or drop TS support if it's too much work)

Contributor guide