"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = minifyJs; var _helpers = require("../helpers.cjs"); var _removeRedundantAttributes = require("./removeRedundantAttributes.cjs"); /** Minify JS with Terser */ async function minifyJs(tree, options, terserOptions) { const terser = await (0, _helpers.optionalImport)('terser'); if (!terser) return tree; let promises = []; tree.walk(node => { const nodeAttrs = node.attrs || {}; /** * Skip SRI * * If the input