15:26 | <kriskowal> | CyanChanges: HMR is specifically one of the cases I hope motivates a Module constructor and possibly even Evaluators |
15:28 | <kriskowal> | It would at least let you create a virtual cache that overshadows the host ESM cache |
15:30 | <CyanChanges> | It would at least let you create a virtual cache that overshadows the host ESM cache |
15:30 | <CyanChanges> | The caches will keeps growing. |
15:31 | <kriskowal> | No, the caches themelves are eligible for collection |
15:33 | <kriskowal> | So for HMR, you would need to release the previous generation’s module instances when retaining the new root. The usual amount of care is needed only to avoid chaining retention between successive generations |
15:34 | <kriskowal> | In general, it should be sufficient to drop the root Module when you import the next root |
15:36 | <CyanChanges> | Looks pretty good. |