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
[email protected]
import { parseModule, generateCode } from "magicast"; const mod = parseModule(` export default { /*inner comment*/ } `); mod.exports.default.foo ||= []; mod.exports.default.foo.push("b"); mod.exports.default.foo.unshift("a"); const { code } = generateCode(mod); console.log({ code });
actual: an inner comment within an empty object is lost after manipulating that object expected: the inner comment should be preserved
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
[email protected]
Reproduction
Describe the bug
actual: an inner comment within an empty object is lost after manipulating that object
expected: the inner comment should be preserved
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: