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

early out if no modules found #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

givanse
Copy link

@givanse givanse commented Feb 15, 2019

No description provided.

callback();
return;
}

Array.from(npmModules.keys())
Copy link
Author

@givanse givanse Feb 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When this is empty, the for each and inner logic never executes. Then, on line 73

compilation.assets[`${this.options.outputFile}.${extension}`] = {

the value of extension is undefined, producing an empty license.undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant