Use require() in main.js