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`);