def load_index(self):
        """Load in-memory state from the index file."""
        with open(self.index_file, "r") as f:
            index = json.load(f)
        self.modules = index["modules"]
        self.preload = index["preload"]
        with open(self.meta_file, "r") as f:
            meta = json.load(f)
        self.exclude = meta["exclude"]
        self.missing = meta["missing"]
Load in-memory state from the index file.
tools/module_bundler.py