Fix visitor inheritance.
This commit is contained in:
parent
c42e027602
commit
70354013f1
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user