wire dependencies in require main.js files for different environment.