Thanks to visit codestin.com Credit goes to github.com
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
Describe the bug
When having multiple literal strings concatenated, e.g.
defineMessage({ defaultMessage: "Foo " + "Bar", description: "foobar", })
(normally happens when the strings are long and span over multiple lines).
The result of the compilation is:
defineMessage({ defaultMessage: "" })
Repro: https://github.com/elado/swc-formatjs-bug-1
Expected behavior
The SWC plugin should behave like Babel's. It should allow "x" + "y" inputs to defaultMessage/description and treat it like a full string.
"x" + "y"
defaultMessage/description
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When having multiple literal strings concatenated, e.g.
(normally happens when the strings are long and span over multiple lines).
The result of the compilation is:
Repro: https://github.com/elado/swc-formatjs-bug-1
Expected behavior
The SWC plugin should behave like Babel's.
It should allow
"x" + "y"
inputs todefaultMessage/description
and treat it like a full string.The text was updated successfully, but these errors were encountered: