lorem-ipsum.js icon indicating copy to clipboard operation
lorem-ipsum.js copied to clipboard

Feature Request: ES Module build

Open graynorton opened this issue 6 months ago • 0 comments

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

graynorton avatar Aug 13 '24 19:08 graynorton