We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35cae50 + 17c4a30 commit 507bf35Copy full SHA for 507bf35
packages/engine-core/src/tasks/platform/taskPlatformConfigure.ts
@@ -26,13 +26,13 @@ export default createTask({
26
isPrivate: true,
27
dependsOn: [RnvTaskName.projectConfigure],
28
fn: async ({ ctx, taskName, originTaskName }) => {
29
- const { program } = ctx;
+ const { program, platform } = ctx;
30
await isBuildSchemeSupported();
31
32
const entryFile = getConfigProp('entryFile');
33
34
const dest = path.join(ctx.paths.project.dir, `${entryFile}.js`);
35
- if (!fsExistsSync(dest)) {
+ if (!fsExistsSync(dest) && platform) {
36
if (!entryFile) {
37
logWarning(
38
`Missing ${chalk().red(entryFile)} key for ${chalk().bold.white(
0 commit comments