Closed jsg2021 closed 5 years ago
This was probably a dumb question. I think the issue is that p-queue
should expose a module entry point. Its currently compiled TypeScript which outputs webpack/babel-like fake-esm/cjs modules.
Hi @jsg2021!
The esm
loader locks down .mjs
files (they get no extra esm
options support).
I just updated a module in my project and it started failing. It went from cjs, to cjs-pretending-to-be-esm with
Object.definePropetry(module, { __esModule: {value: true }})
… however, using this test script in the repl (node -r esm
) and pasting this in results in the correct behavior…however, if you put that in a file and
node -r esm test.mjs
it outputs the “incorrect” thing. Additionally, if you rename the test totest.js
it results in the correct thing. 😕