Fork of https://github.com/xenova/transformers.js
For more info on how this module is used and why it exists as a fork, check out this Notion doc
When running yarn ap dev
from the web monorepo locally, we run the code using ts-node-dev
. When this module is treated as an ESM, it is not transpiling correctly when ran through ts-node-dev
. Therefore, we need to provide a CJS bundle, which removes the need of transforming ESM to CJS both during local dev and deployment.
To transpile this module and to build the type definitions, make sure you run:
$ npm i
$ npm run build