AgileTs esm is transformed into commonjs instead of using the commonjs files directly
bennoinbeta opened this issue Β· comments
π Bug report
π€ Current Behavior
AgileTs isn't importable into commonjs
-> esm modules are imported and then transformed into commonjs which causes issues (like see image)
π― Expected behavior
AgileTs should be importable into commonjs
without problems
π Reproducible example
AgileTs documentation
π‘ Suggested solution(s)
https://the-guild.dev/blog/support-nodejs-esm
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"module": "./dist/esm/index.js",
"default": "./dist/index.js"
},
"./*": {
"types": "./*.d.ts",
"module": "./esm/*.js",
"default": "./*.js"
}
},
Specify what export to use in which import scenario.
Has something to do with nasty circular dependencies
..