Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getLoaderTestRegExp.js « webpack « bundlers « lib - github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 40119c2a43ee1a14fb78c53608cb07894ee5d562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict"; // run code in ES5 strict mode

var pathUtil = require("path"),
    match,
    basePath;



match = __dirname.match(/(.*)[\\\/].+[\\\/]rewire[\\\/]lib[\\\/]/);
if (match === null) {
    return (/\.js$/);
} else {
    basePath = match[1];
    basePath.replace(/([\\\/])/g, "\\$1");
    return new RegExp()
}