Skip to content

Commit 8d8abfc

Browse files
committed
fix isLocal
1 parent dba6ddc commit 8d8abfc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/react-scripts/backpack-addons/ssr/isLocalComponents.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ const paths = require('../../config/paths');
66
* Checking for loadable install, as there is need to set aliases when this is the case
77
*/
88
const isLocalComponents = () => {
9-
// Ensure `ssrEnabled` is on
109
const appPackageJson = require(paths.appPackageJson);
1110
const isLocalComponentsInstalled =
12-
appPackageJson['@skyscanner-internal/local-components'] || {};
11+
appPackageJson['@skyscanner-internal/local-components'];
1312

1413
return isLocalComponentsInstalled;
1514
};

0 commit comments

Comments
 (0)