Conversation
|
huh, did this really broke usage in ESM projects? and how come things work fine when we were testing it in crawlee? those projects were also ESM |
|
Right - the other way around - this might have broken usage in CJS projects. I'm assuming this broke the Crawlee E2E tests on Platform, as we run Local and Memory by importing directly from the |
|
see the bad run e.g. here: |
|
But impit is CJS, there is no native ESM build, the same code was executed regardless of the caller being CJS or ESM. I am just confused that this ever worked, regardless of the project using it was CJS/ESM. |
|
Ah, took me a while, but I think I got to the bottom of this. My guess would still be on some transpilation tool adding a shim for See this JS example mixing ESM and CJS syntax - Now see e.g. this example from esbuild with You're still right that it's weird that this would touch the code from dependencies. 🤔 Also, I'm not sure what the takeaway from this is. Maybe that we should add e2e tests to |


Renames native code import to mitigate naming collision with global
exports.