UNPKG

babel-plugin-remove-use-strict

Version:
15 lines (14 loc) 399 B
module.exports = function () { return { visitor: { Directive:{ exit(path){ if(path.node.value.value ==='use strict'){ let i = path.parent.directives.indexOf(path.node); path.parent.directives.splice(i,1); } } } } }; };