Skip to content

Commit

Permalink
fixed crash, version update
Browse files Browse the repository at this point in the history
  • Loading branch information
sanex3339 committed Jun 3, 2016
1 parent 1c390fe commit 24d9f82
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use strict";
const javascript_obfuscator_1 = require('javascript-obfuscator');
let multimatch = require('multimatch'), RawSource = require('webpack-core/lib/RawSource');
let JavaScriptObfuscator = require('javascript-obfuscator'), multimatch = require('multimatch'), RawSource = require('webpack-core/lib/RawSource');
class WebpackObfuscator {
constructor(options, excludes) {
this.options = {};
Expand All @@ -22,7 +21,7 @@ class WebpackObfuscator {
});
files.forEach((file) => {
let asset = compilation.assets[file];
compilation.assets[file] = new RawSource(javascript_obfuscator_1.JavaScriptObfuscator.obfuscate(asset.source(), this.options));
compilation.assets[file] = new RawSource(JavaScriptObfuscator.obfuscate(asset.source(), this.options));
});
callback();
});
Expand Down

0 comments on commit 24d9f82

Please sign in to comment.