From 578a9e9d53fe47e3200e869a72517d056dd5ee4e Mon Sep 17 00:00:00 2001 From: adam-stasiak Date: Mon, 9 Aug 2021 18:11:26 +0200 Subject: [PATCH] build: Removed jsx-remove-data-test-id usage from code for multi-build-variant testing (#15386) * enabled customized production build with testIds * fix for docker * changed substitution * changed substitution --- superset-frontend/babel.config.js | 3 +++ superset-frontend/package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/superset-frontend/babel.config.js b/superset-frontend/babel.config.js index 94a58d15a..1d0cae258 100644 --- a/superset-frontend/babel.config.js +++ b/superset-frontend/babel.config.js @@ -82,5 +82,8 @@ module.exports = { ], ], }, + testableProduction: { + plugins: [], + }, }, }; diff --git a/superset-frontend/package.json b/superset-frontend/package.json index 338e8ccb9..a96ccedf7 100644 --- a/superset-frontend/package.json +++ b/superset-frontend/package.json @@ -17,7 +17,7 @@ "prod": "npm run build", "build-dev": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack --mode=development --colors", "build-instrumented": "cross-env NODE_ENV=development BABEL_ENV=instrumented webpack --mode=development --colors", - "build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production BABEL_ENV=production webpack --mode=production --colors", + "build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production BABEL_ENV=\"${BABEL_ENV:=production}\" webpack --mode=production --colors", "lint": "eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,.tsx . && npm run type", "prettier-check": "prettier --check '{src,stylesheets}/**/*.{css,less,sass,scss}'", "lint-fix": "eslint --fix --ignore-path=.eslintignore --ext .js,.jsx,.ts,tsx . && npm run clean-css && npm run type",