From 327160a70d511e3e91194e95720ac353b61bea31 Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Mon, 3 Jul 2023 10:34:02 +0200 Subject: [PATCH] Lazy sharp require --- react-native.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/react-native.config.js b/react-native.config.js index 2f63b22f..db8fdf18 100644 --- a/react-native.config.js +++ b/react-native.config.js @@ -1,6 +1,3 @@ -const path = require("path"); -const { generate } = require("./dist/commonjs/generate"); - module.exports = { commands: [ { @@ -45,6 +42,9 @@ module.exports = { { project: { android, ios } }, { backgroundColor, logoWidth, assetsPath, flavor, platforms }, ) => { + const path = require("path"); + const { generate } = require("./dist/commonjs/generate"); + const workingPath = process.env.INIT_CWD || process.env.PWD || process.cwd();