Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3c85a2b

Browse files
sokrajoshwiens
authored andcommitted
feat: use webpack RawSource
1 parent 411e0b3 commit 3c85a2b

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

index.js

+1-13
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,7 @@
44
*/
55
var async = require("async");
66

7-
var Source = require("webpack/lib/Source");
8-
9-
function RawSource(value) {
10-
Source.call(this);
11-
this._value = value;
12-
}
13-
14-
RawSource.prototype = Object.create(Source.prototype);
15-
RawSource.prototype._bake = function() {
16-
return {
17-
source: this._value
18-
};
19-
};
7+
var RawSource = require("webpack/lib/RawSource");
208

219
function CompressionPlugin(options) {
2210
options = options || {};

0 commit comments

Comments
 (0)