A babel plugin for environment specific file imports. Kind of like React Native's platform specific imports.
npm install babel-plugin-env-imports
Add the following line to your babel configuration:
module.exports = {
"plugins": [[
"babel-plugin-env-imports",
{
"env": process.env.YOUR_ENV
}
]]
}