core: track ImportSource with module imports