-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Bug]: Parameter decorator (legacy mode) is not transpiled when there's also a method decorator #14292
Comments
Hey @kobiburnley! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite. |
how can babel know whether it should transpile to legacy or current mode? do we need a config file for it? |
Yes, you must pass a |
💻
How are you using Babel?
Programmatic API (
babel.transform
,babel.parse
)Input code
Configuration file name
No response
Configuration
repl - need to change decorators version to "legacy"
Current and expected behavior
Current behavior - output still contains the parameter decorator
@BodyParam
:Expected behavior - parameter decorator should be transpiled
Environment
System:
OS: macOS 10.15.7
Binaries:
Node: 14.15.4 - /var/folders/g_/lf5b_ch11fgdwmbg3s90jxt80000gn/T/fnm-shell-1243492/bin/node
Yarn: 1.22.17 - /var/folders/g_/lf5b_ch11fgdwmbg3s90jxt80000gn/T/fnm-shell-1243492/bin/yarn
npm: 6.14.10 - /var/folders/g_/lf5b_ch11fgdwmbg3s90jxt80000gn/T/fnm-shell-1243492/bin/npm
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: