Switch to use typeResourceLoader instead of fs.readFile.