Skip to content

Commit 36d0eca

Browse files
aaalsubaiePatrickJS
authored andcommitted
refactor(helper): checkNodeImport is never used! (PatrickJS#844)
1 parent 62ea741 commit 36d0eca

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

config/helpers.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ function root(args) {
1919
return path.join.apply(path, [ROOT].concat(args));
2020
}
2121

22-
function checkNodeImport(context, request, cb) {
23-
if (!path.isAbsolute(request) && request.charAt(0) !== '.') {
24-
cb(null, 'commonjs ' + request); return;
25-
}
26-
cb();
27-
}
28-
2922
exports.hasProcessFlag = hasProcessFlag;
3023
exports.isWebpackDevServer = isWebpackDevServer;
3124
exports.root = root;
32-
exports.checkNodeImport = checkNodeImport;

0 commit comments

Comments
 (0)