From 336be752f8efb2b14f4179d064c31998292ed87c Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 3 Nov 2015 01:19:52 +0000 Subject: [PATCH] remove state arg from pre and post plugin hooks --- packages/babel-core/src/transformation/file/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-core/src/transformation/file/index.js b/packages/babel-core/src/transformation/file/index.js index 06d6e14d34..5d5e18f29f 100644 --- a/packages/babel-core/src/transformation/file/index.js +++ b/packages/babel-core/src/transformation/file/index.js @@ -466,7 +466,7 @@ export default class File extends Store { for (let pass of (this.pluginPasses: Array)) { let plugin = pass.plugin; let fn = plugin[key]; - if (fn) fn.call(pass, this, pass); + if (fn) fn.call(pass, this); } }