From ad857dddd1a3879587bdefe69c23fc2f576f7fa4 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 1 Apr 2015 00:39:20 +1100 Subject: [PATCH] add verification check to deprecation --- src/babel/transformation/file/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/babel/transformation/file/index.js b/src/babel/transformation/file/index.js index becf278c0d..f057a2b0a0 100644 --- a/src/babel/transformation/file/index.js +++ b/src/babel/transformation/file/index.js @@ -108,7 +108,7 @@ export default class File { var val = opts[key]; if (!val && option.optional) continue; - if (option.deprecated) { + if (val && option.deprecated) { throw new Error("Deprecated option " + key + ": " + option.deprecated); }