Fix duplicate generate export in main.js