You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My loader file is executed twice and it seems it is caused by a CJS dependency which calls createRequire. Importing createRequire in my ESM script does not execute loader script twice.
Hello,
My loader file is executed twice and it seems it is caused by a CJS dependency which calls
createRequire
. ImportingcreateRequire
in my ESM script does not execute loader script twice.Is this expected?
Repro:
loader.mjs
index.mjs
Execute:
If i remove
{ transport: { target: 'pino-pretty' }}
:Node v20.18.0
Pino
createRequire
call: https://github.com/pinojs/pino/blob/main/lib/transport.js#L150The text was updated successfully, but these errors were encountered: