Created
June 21, 2021 03:25
-
-
Save reconbot/7f6c6892df6bc687e4e88a20596a4742 to your computer and use it in GitHub Desktop.
How to use import to import an ems module form a cjs file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const slugifyP = import('@sindresorhus/slugify') | |
slugifyP.then(slugify => console.log(slugify.default('I ♥ Dogs'))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment