We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 49ec723 commit c3f463dCopy full SHA for c3f463d
packages/core/src/compile.ts
@@ -30,6 +30,8 @@ export async function compile(options: CompileOptions = {}) {
30
' \x1b[31;1mThe files you need to compile have been indexed:\x1b[0m\n',
31
];
32
(options.entry || []).forEach((fileNames) => err.push(` \x1b[35;1m${fileNames}\x1b[0m`));
33
+ !options.entry?.length &&
34
+ err.push('\x1b[33;1mNo files were indexed. Please check your command line arguments.\x1b[0m');
35
throw new Error(err.join('\n'));
36
}
37
babelTransform(options);
0 commit comments