Open mashirozx opened 1 year ago
Related: #1923
Setting it to ESModules (see https://github.com/h3poteto/megalodon/pull/1923/commits/b73a654ceebb547afe9c471cd4ed0680cd2761c0) doesn't work properly, a lot of files end up as export {};
Will be closed by #1963
Currently we are using cjs modules, but it's not friendly to some modern tool chains, see.
This lib is currently compiled with
tsc
, but it can't compile into ESM perfectly, see. It may needs to introduce bundler like Rollup and SWC.