Kaynağa Gözat

0.7.3: CLI missing polyfill fix

sanex3339 8 yıl önce
ebeveyn
işleme
4811926370
3 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. 4 0
      CHANGELOG.md
  2. 4 0
      bin/javascript-obfuscator.js
  3. 1 1
      package.json

+ 4 - 0
CHANGELOG.md

@@ -1,6 +1,10 @@
 Change Log
 ===
 
+v0.7.3
+---
+* CLI missing polyfill fix [#17](https://github.com/sanex3339/javascript-obfuscator/issues/17)
+
 v0.7.2
 ---
 * runtime error fix [#7](https://github.com/sanex3339/webpack-obfuscator/issues/7)

+ 4 - 0
bin/javascript-obfuscator.js

@@ -1,3 +1,7 @@
 #!/usr/bin/env node
 
+if (!global._babelPolyfill) {
+    require('babel-polyfill');
+}
+
 require('../dist/index').runCLI(process.argv);

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "javascript-obfuscator",
-  "version": "0.7.2",
+  "version": "0.7.3",
   "description": "JavaScript obfuscator",
   "keywords": [
     "obfuscator",