Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
chore: add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Nov 20, 2020
1 parent 02f473a commit 7299522
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/remax-cli/src/build/entries/NativeEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { getNativeAssetOutputPath, replaceExtension } from '../utils/paths';
import VirtualEntry from './VirtualEntry';
import Builder from '../Builder';
import NativeAssets from '../NativeAssets';
import output from '../utils/output';

interface Manifest {
usingComponents?: Record<string, string>;
Expand Down Expand Up @@ -49,6 +50,8 @@ export default class NativeEntry extends VirtualEntry {
entry = new NativeEntry(this.builder, output, filename);
}
acc.set(name, entry);
} else {
output.warn(`${request} can not be resolved in ${this.name}'s \`usingComponents\`.`);
}
return acc;
}, new Map());
Expand Down

0 comments on commit 7299522

Please sign in to comment.