-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
Add sections for Remove React Properties and Remove Console to compiler docs #33311
Add sections for Remove React Properties and Remove Console to compiler docs #33311
Conversation
@@ -94,6 +94,34 @@ const customJestConfig = { | |||
module.exports = createJestConfig(customJestConfig) | |||
``` | |||
|
|||
### Remove React Properties | |||
|
|||
Allows to remove JSX properties. This is often used for testing. Similar to `babel-plugin-react-remove-properties`. |
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.
Allows [Next.js] to?
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.
"This transform allows" to follow on the one below it?
|
||
Allows to remove JSX properties. This is often used for testing. Similar to `babel-plugin-react-remove-properties`. | ||
|
||
To remove properties matching the default regex `^data-test`: |
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.
For example, to remove...
|
||
This transform allows for removing all `console.*` calls in application code (not `node_modules`). Similar to `babel-plugin-transform-remove-console`. | ||
|
||
Remove all `console.*` calls: |
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.
For example, to remove...
Adds docs for some experimental flags that were already shipped to stable.
Bug
fixes #number
contributing.md
Feature
fixes #number
contributing.md
Documentation / Examples
yarn lint