Skip to content

Feature Request: ES Module build #100

@graynorton

Description

@graynorton

I'd like it if lorem-ipsum provided a build in ES Module format, allowing it to be used in a browser without requiring bundling, imported directly from UNPKG, etc.

As a proof of concept (and because I was impatient), I forked and published to my own namespace on npm; it only required a few lines of changes:

https://github.com/knicklabs/lorem-ipsum.js/compare/main...graynorton:lorem-ipsum.js:esm?expand=1

I'm happy to submit a PR if you're interested.

FYI, my immediate use case was creating an example in the Lit.dev playground, which uses UNPKG to load external packages:

https://lit.dev/playground/#gist=a4c46a99c0095cef9b6f42d77df21cbf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions