Skip to content

Commit 7ef74e8

Browse files
committed
moved options defaulter to core
1 parent 64af867 commit 7ef74e8

File tree

3 files changed

+4
-75
lines changed

3 files changed

+4
-75
lines changed

lib/OptionsDefaulter.js

Lines changed: 0 additions & 70 deletions
This file was deleted.

lib/WebpackOptionsDefaulter.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
MIT License http://www.opensource.org/licenses/mit-license.php
33
Author Tobias Koppers @sokra
44
*/
5-
var OptionsDefaulter = require("./OptionsDefaulter");
6-
var path = require("path");
5+
var OptionsDefaulter = require("webpack-core/lib/OptionsDefaulter");
76

8-
function WebpackOptionsDefaulter(str) {
7+
function WebpackOptionsDefaulter() {
98
OptionsDefaulter.call(this);
109
this.set("debug", false);
1110
this.set("devtool", false);

lib/dependencies/RequireContextPlugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RequireContextPlugin.prototype.apply = function(compiler) {
2929
// TODO extract in modules
3030
cmf.plugin("alternatives", function(items, callback) {
3131
if(items.length == 0) return callback(null, items);
32-
32+
3333
callback(null, items.map(function(obj) {
3434
return extensions.filter(function(ext) {
3535
var l = obj.request.length;
@@ -47,7 +47,7 @@ RequireContextPlugin.prototype.apply = function(compiler) {
4747
});
4848
cmf.plugin("alternatives", function(items, callback) {
4949
if(items.length == 0) return callback(null, items);
50-
50+
5151
callback(null, items.filter(function(obj) {
5252
return modulesDirectories.filter(function(dir) {
5353
return obj.request.indexOf("/" + dir + "/") >= 0;

0 commit comments

Comments
 (0)