samchon / tstl

TypeScript-STL (Standard Template Library, migrated from C++)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support both CommonJS and EsModule

samchon opened this issue · comments

It would better to support both CommonJS and EsModule through below package.json configuration.

Also, special configuration of tsconfig.json building both mode also required.

{
  "typings": "index.d.ts",
  "main": "index.cjs",
  "module": "index.mjs"
}