Strip data-testid in production builds (#25152)

This commit is contained in:
Michael Telatynski 2023-04-19 16:30:41 +01:00 committed by GitHub
parent 1a04705960
commit a0791ff48f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 0 deletions

View file

@ -269,6 +269,7 @@ module.exports = (env, argv) => {
},
loader: "babel-loader",
options: {
envName: nodeEnv,
cacheDirectory: true,
},
},
@ -434,6 +435,9 @@ module.exports = (env, argv) => {
{
// TS -> JS because the worklet-loader won't do this for us.
loader: "babel-loader",
options: {
envName: nodeEnv,
},
},
],
},