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

fix(processPattern): don't add 'glob' as directory when it is a file (contextDependencies) #296

Merged
merged 1 commit into from Oct 18, 2018

Conversation

alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Oct 10, 2018

In some cases we might have someone like this which in that cause we wouldn't want to add the parent directory as a webpack context dependencies

{
  ignore: [ '.gitkeep', '**/.DS_Store', '**/Thumbs.db' ],
  from: { glob: 'favicon.ico', dot: true },
  toType: 'dir',
  fromType: 'glob'
}

In some cases we might have someone like this which in that cause we wouldn't want to add the parent directory as a webpack context dependencies
```
{
  ignore: [ '.gitkeep', '**/.DS_Store', '**/Thumbs.db' ],
  from: { glob: 'favicon.ico', dot: true },
  toType: 'dir',
  fromType: 'glob'
}
```
@alan-agius4 alan-agius4 changed the title Fix glob exclude file fix: don't add directiory to conext dependencies when glob is a file Oct 10, 2018
@michael-ciniawsky michael-ciniawsky changed the title fix: don't add directiory to conext dependencies when glob is a file fix(processPattern): don't add directory to contextDependencies when glob is a file Oct 10, 2018
@michael-ciniawsky michael-ciniawsky modified the milestones: 4.6.0, 4.5.4 Oct 10, 2018
@alexander-akait
Copy link
Member

/cc @michael-ciniawsky looks regression

@michael-ciniawsky michael-ciniawsky changed the title fix(processPattern): don't add directory to contextDependencies when glob is a file fix(processPattern): don't add 'glob' as directory when it is a file (contextDependencies) Oct 18, 2018
Copy link
Member

@michael-ciniawsky michael-ciniawsky left a comment

Choose a reason for hiding this comment

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

@michael-ciniawsky
Copy link
Member

Released in v4.5.4 🎉

@michael-ciniawsky michael-ciniawsky removed this from the 4.5.5 milestone Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants