Fix visitor inheritance.

This commit is contained in:
Artem Yavorsky 2017-03-19 14:46:59 +02:00
parent c42e027602
commit 70354013f1

View File

@ -130,9 +130,9 @@ export default function () {
};
return Object.assign(
babelPluginSyntaxObjectRestSpread(),
babelPluginTransformStrictMode(),
{
inherits: babelPluginTransformStrictMode,
visitor: {
ThisExpression(path, state) {
// If other plugins run after this plugin's Program#exit handler, we allow them to
@ -514,6 +514,7 @@ export default function () {
}
}
}
}
},
babelPluginSyntaxObjectRestSpread()
);
}