wa0x6e / cal-heatmap

Cal-Heatmap is a javascript charting library to create a time-series calendar heatmap
http://cal-heatmap.com
MIT License
2.7k stars 292 forks source link

fix: module system, typescript and rollup settings #519

Closed wonkyum-kim closed 3 months ago

wonkyum-kim commented 5 months ago

This pr includes the settings about module system, typescript and rollup settings.

I changed "moduleResolution" in tsconfig.json from "node" to "bundler". (https://www.typescriptlang.org/docs/handbook/modules/guides/choosing-compiler-options.html#im-using-a-bundler)

In rollup.config.js, I deleted the code that generates the JavaScript that uses UMD. Instead, I added code to generate JavaScript that uses CJS. I think ES and CJS are sufficient these days...

If this pr gets merged, I'll try to work on other plugin repositories as well.