"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.queryDependsMap = exports.queryDepends = void 0;
var utils_1 = require("./utils");
var queryRelations = function (code) {
    code = code.replace(/<!--+[\s\S]*?-->/g, '');
    var depends = [];
    code.replace(/<(import|include|wxs)[\s\S]+?src=("[^"\{\}\s]+"|'[^'\{\}\s]+')/g, function (m, _g1, g2) {
        depends.push((0, utils_1.cleanUpSurroundPath)(g2));
        return m;
    });
    return depends;
};
exports.queryDepends = (0, utils_1.createQueryDepends)(queryRelations);
exports.queryDependsMap = (0, utils_1.createQueryDependsMap)(queryRelations);
