-
Notifications
You must be signed in to change notification settings - Fork 961
Open
Description
I ran into an issue with named imports that was similar to #1001, and then I noticed that the README does not include any information on how to import this package using ESM.
Could the README be updated since there are more projects using modules with import/export syntax over commonjs?
Edit: it possibly just needs a reference to use this syntax:
//import comes from the default export
import debug from 'debug';
export default debug('your-package-name')
//With an alias
import {default as debugInitializer} from 'debug';
export default const debug('your-package-name')Metadata
Metadata
Assignees
Labels
No labels