FLUJOS/VISUALIZACION/node_modules/htmlnano/lib/modules/custom.js
2025-11-07 00:06:12 +01:00

22 lines
No EOL
467 B
JavaScript
Executable file

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = custom;
/** Meta-module that runs custom modules */
function custom(tree, options, customModules) {
if (!customModules) {
return tree;
}
if (!Array.isArray(customModules)) {
customModules = [customModules];
}
customModules.forEach(function (customModule) {
tree = customModule(tree, options);
});
return tree;
}