Fix typegen for cjs imports (#4727)

This commit is contained in:
Jaco
2022-04-09 09:33:05 +03:00
committed by GitHub
parent d64a0ca295
commit 2640b65be9
+1 -1
View File
@@ -5,7 +5,7 @@ module.exports = function (file) {
let main;
try {
main = require(`../${file}.cjs`).main;
main = require(`../cjs/${file}.js`).main;
} catch (error) {
// required for dev-only setups
process.env.JEST_WORKER_ID = '123';