Browse Source

fixed tslint error

sanex3339 8 years ago
parent
commit
93c365fd4c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      dist/index.js
  2. 1 1
      src/declarations/esmangle.d.ts

+ 1 - 1
dist/index.js

@@ -1954,7 +1954,7 @@ exports.DEFAULT_PRESET = Object.freeze({
     controlFlowFlattening: false,
     controlFlowFlatteningThreshold: 0.75,
     deadCodeInjection: false,
-    deadCodeInjectionThreshold: 0.75,
+    deadCodeInjectionThreshold: 0.4,
     debugProtection: false,
     debugProtectionInterval: false,
     disableConsoleOutput: true,

+ 1 - 1
src/declarations/esmangle.d.ts

@@ -1,5 +1,5 @@
 declare module "esmangle" {
     import * as ESTree from 'estree';
 
-    function mangle(ast: ESTree.Program): ESTree.Program;
+    function mangle (ast: ESTree.Program): ESTree.Program;
 }