diff --git a/config/aliases/globalReact.js b/config/aliases/globalReact.js deleted file mode 100644 index e773af67..00000000 --- a/config/aliases/globalReact.js +++ /dev/null @@ -1,7 +0,0 @@ -if (!window.React) { - throw new Error( - 'React must be globally set on window for the cozy-bar to use it' - ) -} - -module.exports = window.React || require('my-react') diff --git a/config/aliases/globalReactDOM.js b/config/aliases/globalReactDOM.js deleted file mode 100644 index e037d674..00000000 --- a/config/aliases/globalReactDOM.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = window.ReactDOM || require('my-react-dom') diff --git a/package.json b/package.json index 0c89f593..200c1eba 100644 --- a/package.json +++ b/package.json @@ -134,8 +134,6 @@ }, "moduleNameMapper": { "^config/(.*)": "/src/config/$1", - "^react$": "/config/aliases/globalReact", - "^(react-dom|react-dom/(.*))$": "/config/aliases/globalReactDOM", "\\.(png|gif|jpe?g|svg)$": "/test/__mocks__/fileMock.js", "\\.styl$": "identity-obj-proxy" },