Configured babel plugin for removing data-test from production code (#11327)

This commit is contained in:
adam-stasiak-polidea
2020-10-27 05:16:02 +01:00
committed by GitHub
parent fd8f4e9215
commit df15a6fc51
3 changed files with 19 additions and 2 deletions

View File

@@ -69,5 +69,15 @@ module.exports = {
instrumented: {
plugins: ['istanbul'],
},
production: {
plugins: [
[
'babel-plugin-jsx-remove-data-test-id',
{
attributes: 'data-test',
},
],
],
},
},
};