Skip to content

Commit

Permalink
feat: export something inner
Browse files Browse the repository at this point in the history
make it easy to re-use code when do some custom register
  • Loading branch information
songlairui committed Mar 7, 2020
1 parent 74185e0 commit 75f625c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,13 @@ function stripLoader(dependency) {

return dependency.slice(exclamationLocation + 1);
}

module.exports.resolveWebpackPath = resolveWebpackPath;
module.exports.stripLoader = stripLoader;
module.exports._innerCache = {webpackResolve};
module.exports.dumpLookups = function() {
return supportedFileExtensions.reduce(function(result, key) {
result[key] = defaultLookups[key];
return result;
}, {});
};

0 comments on commit 75f625c

Please sign in to comment.