Remove useless stict toggle from strict transform.

This commit is contained in:
Logan Smyth
2017-09-13 23:28:41 -07:00
parent b6ae55153c
commit 3c93189fce
5 changed files with 1 additions and 24 deletions

View File

@@ -3,11 +3,7 @@ import * as t from "babel-types";
export default function() {
return {
visitor: {
Program(path, state) {
if (state.opts.strict === false || state.opts.strictMode === false) {
return;
}
Program(path) {
const { node } = path;
for (const directive of (node.directives: Array<Object>)) {