Skip to content

Commit

Permalink
fix(cli): 省掉 import 后续 StringLiteral 的处理
Browse files Browse the repository at this point in the history
  • Loading branch information
zcfan committed Jan 9, 2020
1 parent bf539aa commit 5beb1d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/wxa-cli/src/resolvers/ast/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export default class ASTManager {
break;
case ImportDeclaration:
path.get('source').replaceWith(t.stringLiteral(resolved));
path.skip();
break;
}
} catch (e) {
Expand Down

0 comments on commit 5beb1d3

Please sign in to comment.