lorem-ipsum.js
lorem-ipsum.js copied to clipboard
Feature Request: ES Module build
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