fix syntax error in File

This commit is contained in:
Sebastian McKenzie
2015-04-03 00:02:13 +11:00
parent 46adb07d41
commit f42bacf4f6

View File

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