From 5beb1d3a490bff3ae74a34cb346f01688732f423 Mon Sep 17 00:00:00 2001 From: Alan Zhang Date: Thu, 9 Jan 2020 16:25:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(cli):=20=E7=9C=81=E6=8E=89=20import=20?= =?UTF-8?q?=E5=90=8E=E7=BB=AD=20StringLiteral=20=E7=9A=84=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/wxa-cli/src/resolvers/ast/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/wxa-cli/src/resolvers/ast/index.js b/packages/wxa-cli/src/resolvers/ast/index.js index cc5c7e73..e7e293ae 100644 --- a/packages/wxa-cli/src/resolvers/ast/index.js +++ b/packages/wxa-cli/src/resolvers/ast/index.js @@ -130,6 +130,7 @@ export default class ASTManager { break; case ImportDeclaration: path.get('source').replaceWith(t.stringLiteral(resolved)); + path.skip(); break; } } catch (e) {