From f42bacf4f60ad43a9f820040365867b67d4b1cd1 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 3 Apr 2015 00:02:13 +1100 Subject: [PATCH] fix syntax error in File --- 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 7fa8be8d9a..2292ef0fbd 100644 --- a/src/babel/transformation/file/index.js +++ b/src/babel/transformation/file/index.js @@ -260,7 +260,7 @@ export default class File { // validate Transformer instance if (!(plugin instanceof Transformer)) { - if (plugin && plugin.constructor.name "Transformer") { + if (plugin && plugin.constructor.name === "Transformer") { throw new TypeError(`Plugin ${JSON.stringify(name)} exported a Transformer instance but it resolved to a different version of Babel`); } else { throw new TypeError(`Plugin ${JSON.stringify(name)} didn't export default a Transformer instance`);