1
1
mirror of https://github.com/c8r/x0.git synced 2024-08-16 17:00:24 +03:00

Filter node_modules

This commit is contained in:
Brent Jackson 2018-06-19 16:38:14 -04:00
parent b150d12972
commit d23866f69e
2 changed files with 3 additions and 1 deletions

View File

@ -368,7 +368,8 @@ See the [example](https://github.com/c8r/x0/tree/master/examples/webpack-config)
**REMOVE BEFORE MERGING**
- [ ] props.Component in custom apps
- [ ] require.context `_app`
- [ ] props.Component/children in custom apps
- [ ] peer deps
- [ ] Head component with react helmet
- [ ] changelog/docs

View File

@ -27,6 +27,7 @@ const { filename, basename = '', disableScroll } = OPTIONS
const index = filename ? path.basename(filename, path.extname(filename)) : 'index'
const getComponents = req => req.keys()
.filter(minimatch.filter('!node_modules'))
.filter(key => !MATCH || minimatch(key.replace(/^\.\//, ''), MATCH))
.filter(key => !/^_/.test(path.basename(key)))
.map(key => ({