clean testid in production build

This commit is contained in:
Paul Mineev
2022-04-15 12:39:26 -05:00
committed by Umputun
parent 58b0841360
commit 2d3677d629
3 changed files with 20 additions and 2 deletions
+2 -2
View File
@@ -20,11 +20,11 @@ module.exports = {
}),
preactPreset,
],
plugins,
plugins: [...plugins, 'babel-plugin-jsx-remove-data-test-id'],
env: {
modern: {
presets: [getPresetEnv({ targets: { esmodules: true }, loose: true, bugfixes: true }), preactPreset],
plugins,
plugins: [...plugins, 'babel-plugin-jsx-remove-data-test-id'],
},
test: {
presets: [getPresetEnv({ targets: { node: 'current' } }), preactPreset],
+17
View File
@@ -45,6 +45,7 @@
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^5.18.0",
"babel-loader": "^8.2.3",
"babel-plugin-jsx-remove-data-test-id": "^3.0.0",
"clean-webpack-plugin": "^3.0.0",
"codecov": "^3.8.2",
"cross-env": "^7.0.3",
@@ -4820,6 +4821,15 @@
"node": ">= 10.14.2"
}
},
"node_modules/babel-plugin-jsx-remove-data-test-id": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/babel-plugin-jsx-remove-data-test-id/-/babel-plugin-jsx-remove-data-test-id-3.0.0.tgz",
"integrity": "sha512-E4uM/LIUizjy2Z5tVAfa8pSXsYgoKWJ97kzuEMfsIxSLSNDWsAhgFVPkgNuakViX5dkNjw1DKIi0VpWP6djqbw==",
"dev": true,
"peerDependencies": {
"@babel/core": "^7.0.0"
}
},
"node_modules/babel-plugin-polyfill-corejs2": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.0.tgz",
@@ -22756,6 +22766,13 @@
"@types/babel__traverse": "^7.0.6"
}
},
"babel-plugin-jsx-remove-data-test-id": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/babel-plugin-jsx-remove-data-test-id/-/babel-plugin-jsx-remove-data-test-id-3.0.0.tgz",
"integrity": "sha512-E4uM/LIUizjy2Z5tVAfa8pSXsYgoKWJ97kzuEMfsIxSLSNDWsAhgFVPkgNuakViX5dkNjw1DKIi0VpWP6djqbw==",
"dev": true,
"requires": {}
},
"babel-plugin-polyfill-corejs2": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.2.0.tgz",
+1
View File
@@ -62,6 +62,7 @@
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^5.18.0",
"babel-loader": "^8.2.3",
"babel-plugin-jsx-remove-data-test-id": "^3.0.0",
"clean-webpack-plugin": "^3.0.0",
"codecov": "^3.8.2",
"cross-env": "^7.0.3",