mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
Tweak ModuleLoader handling of index files, fix #3783
This commit is contained in:
parent
6925c4a7d5
commit
5b0b5e4169
1 changed files with 5 additions and 0 deletions
|
@ -60,6 +60,11 @@ module.exports = ModuleLoader = class ModuleLoader extends CocoClass
|
|||
# load dependencies if it's not a vendor library
|
||||
if not _.string.startsWith(e.item.id, 'vendor')
|
||||
have = window.require.list()
|
||||
haveWithIndexRemoved = _(have)
|
||||
.filter (file) -> _.string.endsWith(file, 'index')
|
||||
.map (file) -> file.slice(0,-6)
|
||||
.value()
|
||||
have = have.concat(haveWithIndexRemoved)
|
||||
console.group('Dependencies', e.item.id) if LOG
|
||||
@recentLoadedBytes += e.rawResult.length
|
||||
dependencies = @parseDependencies(e.rawResult)
|
||||
|
|
Loading…
Reference in a new issue