File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "presets" : [" es2015" ],
3- "plugins" : [" transform-object-assign" ]
3+ "plugins" : [
4+ " transform-array-from" ,
5+ " transform-object-assign"
6+ ]
47}
Original file line number Diff line number Diff line change 22
33import { JavaScriptObfuscator } from './src/JavaScriptObfuscator' ;
44
5- if ( ! ( < any > global ) . _babelPolyfill ) {
6- require ( 'babel-polyfill' ) ;
7- }
8-
95module . exports = JavaScriptObfuscator ;
Original file line number Diff line number Diff line change 2828 "devDependencies" : {
2929 "babel-cli" : " ^6.9.0" ,
3030 "babel-loader" : " ^6.2.4" ,
31+ "babel-plugin-transform-array-from" : " ^1.0.0" ,
3132 "babel-plugin-transform-object-assign" : " ^6.8.0" ,
3233 "babel-preset-es2015" : " ^6.9.0" ,
3334 "chai" : " ^3.5.0" ,
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33$( npm bin) /tsc -p tsconfig-test.json
4- $( npm bin) /babel test-tmp --out-dir test-tmp --source-maps --presets es2015 --plugins transform-object-assign
4+ $( npm bin) /babel test-tmp --out-dir test-tmp --source-maps --presets es2015 --plugins transform-array-from,transform- object-assign
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ import { JavaScriptObfuscatorCLI } from "./cli/JavaScriptObfuscatorCLI";
1212import { Obfuscator } from "./Obfuscator" ;
1313import { Options } from "./Options" ;
1414
15+ if ( ! ( < any > global ) . _babelPolyfill ) {
16+ require ( 'babel-polyfill' ) ;
17+ }
18+
1519export class JavaScriptObfuscator {
1620 /**
1721 * @type {GenerateOptions }
You can’t perform that action at this time.
0 commit comments