-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix: use production version of react/jsx-runtime #63
fix: use production version of react/jsx-runtime #63
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@jonaslagoni You had right (in one of the issue comments) with production version of react :) Thanks! |
@magicmatatjahu would there be any use-case where we would not want to use the production version? 🤔 Thinking about in development, anything production lib makes difficult? |
I thought about that, but react only make warns for internal props like |
@jonaslagoni We can make two separate compilation process for dev and prod and integrate it with generator with flag |
As long as adding this production dependency does not suddenly hide warnings and problems that make the development of templates harder we should be good 👍 |
The warnings will be hidden, but they don't matter to us because they are used only for dynamic components that may change in runtime, eg in html app :) I also checked the |
🎉 This PR is included in version 0.2.9 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Use production version of
react/jsx-runtime
to disable development warnings and also speed up the code. Change thereact/jsx-runtime
import toreact/cjs/react-jsx-runtime.production.min
in transpiled bundle.How to test (in easiest way):
@asyncapi/generator
package@asyncapi/markdown-template
template and you shouldn't see any warnings related to key props.Related issue(s)
Resolves #37