Skip to content

Commit

Permalink
fix(RN): 路径别名配置字段错误 (#1939)
Browse files Browse the repository at this point in the history
  • Loading branch information
js-newbee authored and luckyadam committed Jan 19, 2019
1 parent 7355948 commit 25c9871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-cli/src/rn/transformJS.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function parseJSCode ({code, filePath, isEntryFile, projectConfig}) {
let value = source.value
const valueExtname = path.extname(value)
const specifiers = node.specifiers
const pathAlias = projectConfig.pathAlias || {}
const pathAlias = projectConfig.alias || {}
if (Util.isAliasPath(value, pathAlias)) {
source.value = value = Util.replaceAliasPath(filePath, value, pathAlias)
}
Expand Down

0 comments on commit 25c9871

Please sign in to comment.