Files
object-browser/portal-ui/config-overrides.js
Cesar Celis Hernandez 5cb4e6f651 Adopting Playwright (#2702)
2023-03-14 09:26:06 -06:00

20 lines
530 B
JavaScript

const rewireReactHotLoader = require("react-app-rewire-hot-loader");
/* config-overrides.js */
module.exports = function override(config, env) {
if (env === "development") {
config.resolve.alias["react-dom"] = "@hot-loader/react-dom";
}
config = rewireReactHotLoader(config, env);
return config;
};
const { override, addBabelPlugins } = require("customize-cra");
console.log("add babel plugin");
module.exports = override(
process.env.USE_BABEL_PLUGIN_ISTANBUL &&
addBabelPlugins("babel-plugin-istanbul")
);