Process theme `index.js` depending on vars