Strip data-testid in production
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
99974e4099
commit
2d26c46c1c
3 changed files with 7 additions and 0 deletions
|
@ -141,6 +141,7 @@
|
||||||
"allchange": "^1.0.6",
|
"allchange": "^1.0.6",
|
||||||
"babel-jest": "^29.0.0",
|
"babel-jest": "^29.0.0",
|
||||||
"babel-loader": "^9.0.0",
|
"babel-loader": "^9.0.0",
|
||||||
|
"babel-plugin-jsx-remove-data-test-id": "^3.0.0",
|
||||||
"buffer": "^6.0.3",
|
"buffer": "^6.0.3",
|
||||||
"chokidar": "^3.5.1",
|
"chokidar": "^3.5.1",
|
||||||
"concurrently": "^8.0.0",
|
"concurrently": "^8.0.0",
|
||||||
|
|
|
@ -319,6 +319,7 @@ module.exports = (env, argv) => {
|
||||||
loader: "babel-loader",
|
loader: "babel-loader",
|
||||||
options: {
|
options: {
|
||||||
cacheDirectory: true,
|
cacheDirectory: true,
|
||||||
|
plugins: enableMinification ? ["babel-plugin-jsx-remove-data-test-id"] : [],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -3919,6 +3919,11 @@ babel-plugin-jest-hoist@^29.6.3:
|
||||||
"@types/babel__core" "^7.1.14"
|
"@types/babel__core" "^7.1.14"
|
||||||
"@types/babel__traverse" "^7.0.6"
|
"@types/babel__traverse" "^7.0.6"
|
||||||
|
|
||||||
|
babel-plugin-jsx-remove-data-test-id@^3.0.0:
|
||||||
|
version "3.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-plugin-jsx-remove-data-test-id/-/babel-plugin-jsx-remove-data-test-id-3.0.0.tgz#15c95f97ce0ff60d72b29e403bde245f86393288"
|
||||||
|
integrity sha512-E4uM/LIUizjy2Z5tVAfa8pSXsYgoKWJ97kzuEMfsIxSLSNDWsAhgFVPkgNuakViX5dkNjw1DKIi0VpWP6djqbw==
|
||||||
|
|
||||||
babel-plugin-polyfill-corejs2@^0.4.6:
|
babel-plugin-polyfill-corejs2@^0.4.6:
|
||||||
version "0.4.7"
|
version "0.4.7"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.7.tgz#679d1b94bf3360f7682e11f2cb2708828a24fe8c"
|
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.7.tgz#679d1b94bf3360f7682e11f2cb2708828a24fe8c"
|
||||||
|
|
Loading…
Reference in a new issue