open-spaced-repetition / ts-fsrs

ts-fsrs is a versatile package based on TypeScript that supports ES modules, CommonJS, and UMD.
https://open-spaced-repetition.github.io/ts-fsrs/
MIT License
216 stars 22 forks source link

能否支持 commonjs #62

Closed hubingkang closed 11 months ago

ishiko732 commented 11 months ago

https://github.com/ishiko732/ts-fsrs/blob/8a669a4d66f5b58a8c7f251d01e627adea9e2221/package.json#L5 通过rollup编译以后是有common.js,如果在common.js环境下显示找不到的话我这边再排查一下

hubingkang commented 11 months ago

嗯,我在 nest.js 中无法直接引入使用。

ishiko732 commented 11 months ago

今天有点晚了,明天再看看修复

ishiko732 commented 11 months ago

已发布新版本:ts-fsrs@3.2.3,麻烦在nest.js试一下咯。 目前next.js 能够正常运行:https://ts-fsrs-demo.vercel.app/

ishiko732 commented 11 months ago

你好,我在nest.js进行了测试,能够正常使用ts-fsrs了 @hubingkang

hubingkang commented 11 months ago

嗯,最新版本已经正常run了