Skip to content

Commit 571505a

Browse files
committed
clean up dependencies
1 parent 9cbabcd commit 571505a

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,5 @@ I'm very thankful for every dollar. If you leave your username or email I may sh
167167
* [async](https://github.com/caolan/async)
168168
* [mkdirp](https://github.com/substack/node-mkdirp)
169169
* [clone](https://github.com/pvorb/node-clone)
170-
* [base64-encode](https://github.com/ForbesLindesay/base64-encode)
171170

172171
[![Dependency Status](https://david-dm.org/webpack/webpack.png)](https://david-dm.org/webpack/webpack)

lib/EvalSourceMapDevToolModuleTemplateDecorator.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Author Tobias Koppers @sokra
44
*/
55
var RawSource = require("webpack-core/lib/RawSource");
6-
var base64Encode = require("base64-encode");
76

87
function EvalSourceMapDevToolModuleTemplateDecorator(compilation, moduleTemplate, sourceMapComment) {
98
this.compilation = compilation;
@@ -40,7 +39,7 @@ EvalSourceMapDevToolModuleTemplateDecorator.prototype.render = function(module,
4039
sourceMap.sources[i] = str;
4140
}
4241
sourceMap.sourceRoot = "webpack-module://";
43-
var footer = sourceMapComment.replace(/\[url\]/g, "data:application/json;base64," + base64Encode(JSON.stringify(sourceMap)));
42+
var footer = sourceMapComment.replace(/\[url\]/g, "data:application/json;base64," + new Buffer(JSON.stringify(sourceMap)).toString("base64"));
4443
return new RawSource("eval(" + JSON.stringify(content + footer) + ");" );
4544
},
4645
identifier: function() { return module.identifier() },

lib/SourceMapDevToolPlugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ var RequestShortener = require("./RequestShortener");
66
var Template = require("./Template");
77
var ConcatSource = require("webpack-core/lib/ConcatSource");
88
var RawSource = require("webpack-core/lib/RawSource");
9-
var base64Encode = require("base64-encode");
109

1110
function SourceMapDevToolPlugin(sourceMapFilename, sourceMappingURLComment) {
1211
this.sourceMapFilename = sourceMapFilename;
@@ -62,7 +61,7 @@ SourceMapDevToolPlugin.prototype.apply = function(compiler) {
6261
asset.__SourceMapDevTool_Data[sourceMapFile] = this.assets[sourceMapFile] = new RawSource(JSON.stringify(sourceMap));
6362
chunk.files.push(sourceMapFile);
6463
} else {
65-
asset.__SourceMapDevTool_Data[file] = this.assets[file] = new ConcatSource(asset, sourceMappingURLComment.replace(/\[url\]/g, "data:application/json;base64," + base64Encode(JSON.stringify(sourceMap))));
64+
asset.__SourceMapDevTool_Data[file] = this.assets[file] = new ConcatSource(asset, sourceMappingURLComment.replace(/\[url\]/g, "data:application/json;base64," + new Buffer(JSON.stringify(sourceMap)).toString("base64")));
6665
}
6766
}
6867
}, this);

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"clone": "0.1.x",
1414
"webpack-core": "0.3.x",
1515
"node-libs-browser": "0.2.x",
16-
"tapable": "0.1.x",
17-
"base64-encode": "1.0.x"
16+
"tapable": "0.1.x"
1817
},
1918
"licenses": [
2019
{
@@ -32,7 +31,7 @@
3231
"raw-loader": "0.5.x",
3332
"json-loader": "0.5.x",
3433
"jade-loader": "0.5.x",
35-
"coffee-loader": "0.6.x",
34+
"coffee-loader": "0.7.x",
3635
"css-loader": "0.6.x",
3736
"less-loader": "0.7.x",
3837
"style-loader": "0.6.x",

0 commit comments

Comments
 (0)