mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge branch 'hot-module-reload' into release-2.0
This commit is contained in:
@@ -24,6 +24,12 @@ const importedBy = Object.create(null);
|
||||
if (module._onRequire) {
|
||||
module._onRequire({
|
||||
before(importedModule, parentId) {
|
||||
if (parentId === module.id) {
|
||||
// While applying updates we import modules to re-run them.
|
||||
// Don't track those imports since we don't want them to affect
|
||||
// if a future change to the file can be accepted
|
||||
return;
|
||||
}
|
||||
imported[parentId] = imported[parentId] || new Set();
|
||||
imported[parentId].add(importedModule.id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user