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
3.2.25
3.2.20
probably related to #773, #776 where users try to mix CJS with ESM syntax.
options.js
import fs from 'fs' module.exports = {}
main.js
const esm = require('esm')(module) const options = esm('./options.js') options.dev = true console.log(options.dev) // true const b = Object.assign({}, options) console.log(b.dev) // undefined
Side note: This bug only happens when options.js is in mixed mode. not happening when it is pure ESM or pure CJS.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
3.2.25
(works fine with <=3.2.20
)probably related to #773, #776 where users try to mix CJS with ESM syntax.
options.js
main.js
Side note: This bug only happens when
options.js
is in mixed mode. not happening when it is pure ESM or pure CJS.The text was updated successfully, but these errors were encountered: