Requiring ESM from CJS + TypeScript __importDefault helper results in a nested structure, all the exports of the ESM file are wrapped in the .default property of the required variable.
See https://github.com/sodatea/cjs-require-esm-tests.git for a minimal reproduction.
Rollup fixes this issue with rollup/plugins#552
It is also the cause of #1323
Requiring ESM from CJS + TypeScript
__importDefaulthelper results in a nested structure, all the exports of the ESM file are wrapped in the.defaultproperty of the required variable.See https://github.com/sodatea/cjs-require-esm-tests.git for a minimal reproduction.
Rollup fixes this issue with rollup/plugins#552
It is also the cause of #1323