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

Commit

Permalink
fix: Also search config with 'babel-plugin-' prefix name
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy Leunen committed Aug 6, 2016
1 parent bbaa647 commit c7633d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"env": {
"test": {
"plugins": [
["module-alias", [
["babel-plugin-module-alias", [
{ "src": "./test/examples/components/sub/sub", "expose": "subsub" }
]]
]
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const assign = require('object-assign');
const findBabelConfig = require('find-babel-config'); // eslint-disable-line

function findModuleAliasConfig(conf) {
return conf.plugins.find(p => p[0] === 'module-alias');
return conf.plugins.find(p => p[0] === 'module-alias' || p[0] === 'babel-plugin-module-alias');
}

function getMappingFromBabel(start) {
Expand Down

0 comments on commit c7633d6

Please sign in to comment.