From 5dbfc1b416dab8ff2dcf12466e613075022e28da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Gorej?= Date: Wed, 6 Sep 2023 07:36:36 +0200 Subject: [PATCH] fix(swagger-ui-react): avoid babel output in build fragments (#9194) Problem was resolved by turning babel debug off. Refs #9192 --- babel.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/babel.config.js b/babel.config.js index 369863e2..6b9f3fd4 100644 --- a/babel.config.js +++ b/babel.config.js @@ -15,13 +15,23 @@ module.exports = { ], "@babel/preset-react", ], + "plugins": [ + [ + "transform-react-remove-prop-types", + { + "additionalLibraries": [ + "react-immutable-proptypes" + ] + } + ], + ], }, "esm": { "presets": [ [ "@babel/env", { - "debug": true, + "debug": false, "modules": false, "ignoreBrowserslistConfig": false, "useBuiltIns": false,