How to write a nested if else for import and export in ES6. Here I have 2 files, production.js and development.js having separately keys for development code and production cod