add strict mode plugin to module transforms
This commit is contained in:
@@ -118,6 +118,8 @@ export default function () {
|
||||
};
|
||||
|
||||
return {
|
||||
inherits: require("babel-plugin-transform-strict-mode"),
|
||||
|
||||
visitor: {
|
||||
ThisExpression(path) {
|
||||
if (!path.findParent((path) => !path.is("shadow") && THIS_BREAK_KEYS.indexOf(path.type) >= 0)) {
|
||||
|
||||
Reference in New Issue
Block a user