Generate module cache during build
Load module cache in index.js