Skip to content

Commit 327160a

Browse files
committed
Lazy sharp require
1 parent 3d3b657 commit 327160a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

react-native.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
const path = require("path");
2-
const { generate } = require("./dist/commonjs/generate");
3-
41
module.exports = {
52
commands: [
63
{
@@ -45,6 +42,9 @@ module.exports = {
4542
{ project: { android, ios } },
4643
{ backgroundColor, logoWidth, assetsPath, flavor, platforms },
4744
) => {
45+
const path = require("path");
46+
const { generate } = require("./dist/commonjs/generate");
47+
4848
const workingPath =
4949
process.env.INIT_CWD || process.env.PWD || process.cwd();
5050

0 commit comments

Comments
 (0)