typeorm-factory icon indicating copy to clipboard operation
typeorm-factory copied to clipboard

CJS build

Open lmeysel opened this issue 1 year ago • 2 comments

Heyhey, I know ESM is the cool guy out there, but there are tools which easily allow to provide ESM as well as CJS (e.g. microbundle). This should also solve #169

The problem is: This package is mostly used for testing, and many test environments are running with jest. And ESM is a pain with jest. I know about e.g. transformIgnorePatterns but that slows down the tests and, well, it is just not necessary.

So is it possible to get a CJS (bundle) as well?

lmeysel avatar Sep 18 '24 09:09 lmeysel

Can you try if the package under next label is working with CJS?

pnpm add -D @jorgebodega/typeorm-factory@next

jorgebodega avatar Sep 26 '24 10:09 jorgebodega

Works perfect! However, now there is no ESM build anymore, right? Why not providing both?

lmeysel avatar Oct 07 '24 09:10 lmeysel