保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5
PAMapp/node_modules/style-resources-loader/lib/utils/match-files.js
@@ -1,12 +1,10 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.matchFiles = void 0;
const path_1 = __importDefault(require("path"));
const util_1 = __importDefault(require("util"));
const glob_1 = __importDefault(require("glob"));
const tslib_1 = require("tslib");
const path_1 = (0, tslib_1.__importDefault)(require("path"));
const util_1 = (0, tslib_1.__importDefault)(require("util"));
const glob_1 = (0, tslib_1.__importDefault)(require("glob"));
const type_guards_1 = require("./type-guards");
const isLegacyWebpack = (ctx) => !!ctx.options;
const getRootContext = (ctx) => {
@@ -19,7 +17,7 @@
    const emptyItems = [];
    return emptyItems.concat(...items);
};
exports.matchFiles = async (ctx, options) => {
const matchFiles = async (ctx, options) => {
    const { patterns, globOptions } = options;
    const files = await Promise.all(patterns.map(async (pattern) => {
        const rootContext = getRootContext(ctx);
@@ -29,4 +27,5 @@
    }));
    return [...new Set(flatten(files))].map(file => path_1.default.resolve(file));
};
exports.matchFiles = matchFiles;
//# sourceMappingURL=match-files.js.map