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
in a.js
var a = false; export default a;
in index.js
var hasA = require("./a.js"); const a = hasA || "A"; console.log(a); module.exports = a;
a compressed value
a compressed value :A
vite-plugins/packages/vite-plugin-commonjs/src/lib.ts
Line 37 in 568f5b7
The text was updated successfully, but these errors were encountered:
这个问题可以帮忙回复下吗?
Sorry, something went wrong.
No branches or pull requests
Versions
Reproduction
Additional Details
in a.js
in index.js
a compressed value
Steps to reproduce
What is Expected?
a compressed value :A
What is actually happening?
vite-plugins/packages/vite-plugin-commonjs/src/lib.ts
Line 37 in 568f5b7
If the line use ||, it will directly export a boolean value itself, such as false, which will cause the subsequent case to be used.
The text was updated successfully, but these errors were encountered: