feat: refactoring project
This commit is contained in:
3
node_modules/webpack/lib/sharing/resolveMatchedConfigs.js
generated
vendored
3
node_modules/webpack/lib/sharing/resolveMatchedConfigs.js
generated
vendored
@@ -28,7 +28,7 @@ const RESOLVE_OPTIONS = { dependencyType: "esm" };
|
||||
* @param {[string, T][]} configs to be processed configs
|
||||
* @returns {Promise<MatchedConfigs<T>>} resolved matchers
|
||||
*/
|
||||
exports.resolveMatchedConfigs = (compilation, configs) => {
|
||||
module.exports.resolveMatchedConfigs = (compilation, configs) => {
|
||||
/** @type {Map<string, T>} */
|
||||
const resolved = new Map();
|
||||
/** @type {Map<string, T>} */
|
||||
@@ -47,6 +47,7 @@ exports.resolveMatchedConfigs = (compilation, configs) => {
|
||||
const context = compilation.compiler.context;
|
||||
|
||||
return Promise.all(
|
||||
// eslint-disable-next-line array-callback-return
|
||||
configs.map(([request, config]) => {
|
||||
if (/^\.\.?(\/|$)/.test(request)) {
|
||||
// relative request
|
||||
|
||||
Reference in New Issue
Block a user