main.js: correct exports