You need to `delete modules[uri]` in catch, otherwise subsequent imports will hit the cache above and get empty export instead of `file.json.js`.