From c4794f95e17d7d217976b516e82835148235bffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ruci=C5=84ski?= Date: Tue, 16 May 2017 23:30:04 +0200 Subject: [PATCH] feat: Run the plugin in the "enter" phase of the Program (#179) --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 8ed62d1..fc61e09 100644 --- a/src/index.js +++ b/src/index.js @@ -10,7 +10,7 @@ const importVisitors = { const visitor = { Program: { - exit(programPath, state) { + enter(programPath, state) { programPath.traverse(importVisitors, state); }, },