Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 928 Bytes

README.md

File metadata and controls

18 lines (10 loc) · 928 Bytes

Pure ESM TS Template

Template with boilerplate for a pure ESM package in TypeScript; inspired by this gist.

Overview

I made this template because I wanted a clean starting point for my TypeScript packages without bloated & unnessasary configurations.

CommonJS Support

The aim of this template is be to pure ESM. However, if you do need to support CommonJS you can use the example package file: package.cjs.json

Resources

Example 'Install' disclaimer

Warning: This package is native ESM and doesn't provide a CommonJS export. If your project uses CommonJS, you'll have to convert to ESM or use the dynamic import() function.