Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
fix: Fix config lookup with specific environment
Browse files Browse the repository at this point in the history
Fixes #22
  • Loading branch information
Tommy Leunen committed Aug 9, 2016
1 parent 60c81a2 commit 50f4f6e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ function getMappingFromBabel(start) {

if (c.config.env && c.config.env[env] && Array.isArray(c.config.env[env].plugins)) {
const envPluginConfig = findModuleAliasConfig(c.config.env[env]);
if (pluginConfig) {
pluginConfig[1] = pluginConfig[1].concat(envPluginConfig[1]);
} else {
pluginConfig = envPluginConfig;
if (envPluginConfig) {
if (pluginConfig) {
pluginConfig[1] = pluginConfig[1].concat(envPluginConfig[1]);
} else {
pluginConfig = envPluginConfig;
}
}
}

Expand Down

0 comments on commit 50f4f6e

Please sign in to comment.