How to Build a TypeScript Project for Both CJS and ESM Targetsby@isharafeev

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

tldt arrow
Read on Terminal Reader🖨️

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

@isharafeev

Ildar Sharafeev

react to story with heart
Ildar Sharafeev HackerNoon profile picture
by Ildar Sharafeev @isharafeev.Sr Software Engineer. 12+ yoe. Passionate about frontend, micro-frontends, serverless, and clean code.
Read my stories

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa