Skip to content

Latest commit

 

History

History

esm.loader

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Example: esm.loader

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

Why

This example makes use of the esm module, which rewrites all ESM syntax to CommonJS on the fly.

Highlights

  • Use ESM within regular .js files

  • Works in all versions of Node.js
    Because the esm loader is invoked – never the native behavior.

  • Solves CommonJS <-> ESM interop issues
    A significant portion of the npm ecosystem is still CommonJS-only.

License

MIT © Luke Edwards