We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nodejs: v18.1.0
just run test.js with the code as blow.
I use nuxt3 to creat web app. Nuxt3 use jiti to resolve module. The function require is modified by jiti.
require
const { transports } = require("winston"); console.log('winston', transports); const jiti1 = require("jiti")(process.cwd(), { interopDefault: true, esmResolve: true }); const { transports: transports1 } = jiti1("winston"); console.log('jiti1', transports1); const jiti2 = require("jiti")(process.cwd()); const { transports: transports2 } = jiti2("winston"); console.log('jiti2', transports2);
The output of jiti1 is wrong if i set { interopDefault: true, esmResolve: true }.
{ interopDefault: true, esmResolve: true }
No response
The text was updated successfully, but these errors were encountered:
repo: https://github.com/Sara2009/bug-report-jiti
run: node ./jiti-winston.js
node ./jiti-winston.js
Sorry, something went wrong.
No branches or pull requests
Environment
nodejs: v18.1.0
Reproduction
just run test.js with the code as blow.
Describe the bug
I use nuxt3 to creat web app. Nuxt3 use jiti to resolve module. The function
require
is modified by jiti.The output of jiti1 is wrong if i set
{ interopDefault: true, esmResolve: true }
.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: