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:
parent
b150d12972
commit
d23866f69e
@ -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
|
||||
|
@ -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 => ({
|
||||
|
Loading…
Reference in New Issue
Block a user