paint-brush
How to Build a TypeScript Project for Both CJS and ESM Targetsby@isharafeev
560 reads
560 reads

How to Build a TypeScript Project for Both CJS and ESM Targets

by Ildar Sharafeev8mFebruary 3rd, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

This article will describe how we can build a TypeScript project for both CJS and ESM targets using a pure TypeScript compiler and native npm features. You can find an example project in my GitHub [repo]:https://github.com/sr-shifu/ts-build-octopus.
featured image - How to Build a TypeScript Project for Both CJS and ESM Targets
Ildar Sharafeev HackerNoon profile picture
Ildar Sharafeev

Ildar Sharafeev

@isharafeev

Sr Software Engineer. decade+ in the industry. Passionate about frontend, micro-frontends, serverless, and clean code.

L O A D I N G
. . . comments & more!

About Author

Ildar Sharafeev HackerNoon profile picture
Ildar Sharafeev@isharafeev
Sr Software Engineer. decade+ in the industry. Passionate about frontend, micro-frontends, serverless, and clean code.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
Coffee-web