Bundler can't parse multiple exports per module

This commit is contained in:
Barney 2022-06-27 15:24:54 +01:00 committed by Claudia Meadows
parent 28d35b47a2
commit da76ed9054

View file

@ -1,18 +1,22 @@
"use strict"
var delayedRemoval = new WeakMap
module.exports.delayedRemoval = delayedRemoval
module.exports.domFor = function *domFor({dom, domSize}, {generation} = {}) {
function *domFor({dom, domSize}, {generation} = {}) {
if (dom != null) do {
const {nextSibling} = dom
if (delayedRemoval.get(dom) === generation) {
yield dom
domSize--
}
dom = nextSibling
}
while (domSize)
}
module.exports = {
delayedRemoval: delayedRemoval,
domFor: domFor,
}