perf: remove data-testid in production (#2228)
Co-authored-by: Himself65 <himself65@outlook.com>
This commit is contained in:
1 parent
8a617f91e6
commit
92859bf8b9
4 files changed
+10
No files matched your search
@@ -80,6 +80,11 @@ const nextConfig = {
|
||||
removeConsole: {
|
||||
exclude: ['error', 'log', 'warn', 'info'],
|
||||
},
|
||||
reactRemoveProperties: !buildFlags.enableTestProperties
|
||||
? {
|
||||
properties: ['^data-testid$'],
|
||||
}
|
||||
: false,
|
||||
emotion: {
|
||||
sourceMap: true,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user