From 6c3640edcf47a2a8734ae3ac890827cdd17a0e3e Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Thu, 5 Jan 2017 11:02:55 -0500 Subject: [PATCH] Ensure common local plugin options do not error. Prevents errors from passing through all options to `babel` when using `annotation` / `description` options. These are used locally by the builder system and should not end up in babel invocation. --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 0866b32f..37eebbdf 100644 --- a/index.js +++ b/index.js @@ -34,6 +34,8 @@ function Babel(inputTree, _options) { Filter.call(this, inputTree, options); delete options.persist; + delete options.annotation; + delete options.description; this.console = options.console || console; delete options.console;