Strip data-testid in production builds (#25152)
This commit is contained in:
parent
1a04705960
commit
a0791ff48f
4 changed files with 22 additions and 0 deletions
|
@ -32,4 +32,16 @@ module.exports = {
|
|||
"@babel/plugin-syntax-dynamic-import",
|
||||
"@babel/plugin-transform-runtime",
|
||||
],
|
||||
env: {
|
||||
production: {
|
||||
plugins: [
|
||||
[
|
||||
"babel-plugin-jsx-remove-data-test-id",
|
||||
{
|
||||
attributes: "data-testid",
|
||||
},
|
||||
],
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue