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

Ignore dotfiles in webpack file discovery #11094 #11203

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ function buildFilepathLookup(path, staticUrlPrefix) {
};

return getFileList(path).reduce((lookup, file) => {
// Ignore dotfiles
if (file.match(new RegExp(Path.sep + '\\.')) || file.match(/^\./)) {
return lookup;
}
const extension = file.match(/[^.]+$/).toString();
if (extension === 'js') {
lookup[file.replace(path,'').replace(/\\/g, '/').replace(/\.js$/,'').replace(/^\//,'')] = {"import": file, "filename": `${prefix}/[name].${extension}`};
Expand Down
1 change: 1 addition & 0 deletions releases/7.5.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Arches 7.5.4 Release Notes

### Bug Fixes and Enhancements

- Fix regression in 7.5.3 where webpack fails to build if dotfiles are present #11094

### Dependency changes:
```
Expand Down
Loading