Skip to content

Commit da76ed9

Browse files
barneycarrolldead-claudia
authored andcommitted
Bundler can't parse multiple exports per module
1 parent 28d35b4 commit da76ed9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

render/domFor.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
"use strict"
22

33
var delayedRemoval = new WeakMap
4-
module.exports.delayedRemoval = delayedRemoval
54

6-
module.exports.domFor = function *domFor({dom, domSize}, {generation} = {}) {
5+
function *domFor({dom, domSize}, {generation} = {}) {
76
if (dom != null) do {
87
const {nextSibling} = dom
9-
8+
109
if (delayedRemoval.get(dom) === generation) {
1110
yield dom
1211
domSize--
1312
}
14-
13+
1514
dom = nextSibling
1615
}
1716
while (domSize)
1817
}
18+
19+
module.exports = {
20+
delayedRemoval: delayedRemoval,
21+
domFor: domFor,
22+
}

0 commit comments

Comments
 (0)