Skip to content

Latest commit

 

History

History

esm.mjs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Example: esm.mjs

Please read /docs/esm for full details & comparisons.

Why

This example makes use of the native ESM loader – available in version Node 12 and later!

Highlights

  • Uses native ESM via the .mjs file extension
    This is the Node's default behavior.

  • Define import statements with full file paths
    Required by Node.js whenever ESM in use.

License

MIT © Luke Edwards