Skip to content
New issue

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

bad transform of declared property #77

Open
NullVoxPopuli opened this issue Jul 25, 2024 · 3 comments
Open

bad transform of declared property #77

NullVoxPopuli opened this issue Jul 25, 2024 · 3 comments

Comments

@NullVoxPopuli
Copy link
Contributor

NullVoxPopuli commented Jul 25, 2024

Repro: https://stackblitz.com/edit/stackblitz-starters-nmegkz?description=Starter%20project%20for%20Node.js,%20a%20JavaScript%20runtime%20built%20on%20Chrome%27s%20V8%20JavaScript%20engine&file=index.mjs&title=node.new%20Starter

Input:

export class Demo {
  declare interactive: boolean;
}

output:

export class Demo {
  interactive: boolean;
}

Initially reported ember-cli/ember-template-imports#242

I would expect the output to retain the declare for the interactive field, ya?

@ef4
Copy link
Collaborator

ef4 commented Aug 6, 2024

I suspect this can be reproduced in stock SWC (unless they've fixed it since the last time we updated our fork).

@NullVoxPopuli
Copy link
Contributor Author

This is still an issue 🤔

@ef4
Copy link
Collaborator

ef4 commented Nov 6, 2024

We have not updated swc though. There's no reason to believe it would be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants