Frontend/25_01_07/mai/node_modules/rollup-plugin-terser/transform.js
szabomarton 7f4a15b9c3 asd
2025-01-28 11:38:27 +01:00

9 lines
256 B
JavaScript

const { minify } = require("terser");
const transform = (code, optionsString) => {
const options = eval(`(${optionsString})`);
return minify(code, options).then(result => ({ result, nameCache: options.nameCache }));
};
exports.transform = transform;