Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show warning message when entry file not provided (#1797) #1829

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Bundler.js
Expand Up @@ -79,6 +79,8 @@ class Bundler extends EventEmitter {

// If no entry files provided, resolve the entry point from the current directory.
if (!entryFiles || entryFiles.length === 0) {
// Show warning message if arguments are not passed to command
logger.warn('Entry file not provided explicitly');
entryFiles = [process.cwd()];
}

Expand Down Expand Up @@ -301,6 +303,7 @@ class Bundler extends EventEmitter {
let buildTime = Date.now() - startTime;
let time = prettifyTime(buildTime);
logger.success(`Built in ${time}.`);

if (!this.watcher) {
bundleReport(this.mainBundle, this.options.detailedReport);
}
Expand Down