samchon / tstl

TypeScript-STL (Standard Template Library, migrated from C++)
MIT License
602 stars 49 forks source link

Revert both cjs and esm modules support #108

Closed samchon closed 2 years ago

samchon commented 2 years ago

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.