Skip to content

Commit a3dd40c

Browse files
committed
use bulk-require and bulkify correctly
1 parent be3c6ad commit a3dd40c

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

modules/browser.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,5 @@ const bulk = require('bulk-require')
22
const Path = require('path')
33

44
module.exports = bulk(Path.join(__dirname, '..'), [
5-
'+(app|client|config|log|pull|service)/**/!(browser|*.test).js'
6-
])
7-
// HACK remove circular bulk require artifacts
8-
delete module.exports.config.index
9-
delete module.exports.service.index
10-
delete module.exports.pull.index
11-
delete module.exports.log.index
5+
'+(app|browser|client|config|log|pull|service)/**/!(browser|*.test).js'
6+
], { index: false })

modules/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ const Path = require('path')
33

44
module.exports = bulk(Path.join(__dirname, '..'), [
55
'+(app|cli|client|config|log|pull|service|server)/**/!(browser|*.test).js'
6-
])
6+
], { index: false })

0 commit comments

Comments
 (0)