Remove 'strict:false' directive behavior. Use 'strictMode:false'.

This commit is contained in:
Logan Smyth
2017-09-13 23:30:21 -07:00
parent 637bba542a
commit 2801bfe35c

View File

@@ -31,7 +31,7 @@ export function rewriteModuleStatementsAndPrepareHeader(
rewriteLiveReferences(path, meta);
if (strictMode !== false || strict !== false) {
if (strictMode !== false) {
const hasStrict = path.node.directives.some(directive => {
return directive.value.value === "use strict";
});