rebuildjs 0.70.2 → 0.70.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/build/index.js +4 -4
package/package.json
CHANGED
package/server/build/index.js
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
off,
|
|
14
14
|
promise__cancel,
|
|
15
15
|
promise__cancel__throw,
|
|
16
|
+
ref__bind,
|
|
16
17
|
rmemo__wait,
|
|
17
18
|
run
|
|
18
19
|
} from 'ctx-core/rmemo'
|
|
@@ -395,7 +396,7 @@ export function rebuildjs_plugin_() {
|
|
|
395
396
|
})
|
|
396
397
|
}
|
|
397
398
|
// Prevent GC
|
|
398
|
-
setup
|
|
399
|
+
ref__bind(setup, rebuildjs_plugin__postprocess$_())
|
|
399
400
|
return setup
|
|
400
401
|
/**
|
|
401
402
|
*
|
|
@@ -507,13 +508,12 @@ export function rebuildjs_plugin_() {
|
|
|
507
508
|
}
|
|
508
509
|
async function cmd(promise) {
|
|
509
510
|
if (cancel_()) promise__cancel__throw(promise)
|
|
510
|
-
promise
|
|
511
|
+
ref__bind(promise, calling(memo_(rebuildjs_cancel$=>{
|
|
511
512
|
if (cancel_()) {
|
|
512
513
|
promise__cancel(promise)
|
|
513
514
|
off(rebuildjs_cancel$)
|
|
514
515
|
}
|
|
515
|
-
|
|
516
|
-
}))
|
|
516
|
+
})))
|
|
517
517
|
const ret = await promise
|
|
518
518
|
if (cancel_()) promise__cancel__throw(promise)
|
|
519
519
|
return ret
|