Skip to content

Commit

Permalink
fix(taroize): wxs import 需要保持原有命名
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Aug 28, 2019
1 parent b661745 commit 98556a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-cli/src/convertor/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ export default class Convertor {
lastImport.insertAfter(t.importDeclaration([], t.stringLiteral(promoteRelativePath(path.relative(sourceFilePath, importStylePath)))))
}
if (imports && imports.length) {
imports.forEach(({ name, ast }) => {
const importName = pascalCase(name)
imports.forEach(({ name, ast, wxs }) => {
const importName = wxs ? name : pascalCase(name)
if (componentClassName === importName) {
return
}
Expand Down

0 comments on commit 98556a3

Please sign in to comment.