Skip to content

export valid ESM so this works better with modern builds #17

@jlengstorf

Description

@jlengstorf

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions