Configure require to be able to optimize and load editor-main.js module.