samchon / tstl

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Revert both cjs and esm modules support

samchon opened this issue · comments

I'd succeeded to support both cjs and esm modules, by publishing js, mjs, d.ts, d.mts files at the same time, through developing custom builder program. However, it can cause duplicated class problem. If a library imports Vector of tstl as CSM and another library also imports Vector class of ESM, two Vector classes being considered as different class.

Therefore, I conclude this experiment as premature and decided to roll back.

However, I will keep the custom builder program for future.