仪表盘
版本库
文件存储
活动
搜索
登录
刘苏义
/
ruoyi-api
分支自
ard/ruoyi-api
概况
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
视频巡检任务 重新生成表
zhangjian
2023-05-30
dabbcc356af21f9f2f88ac69ff07994e6e32e4fc
[~liusuyi/ruoyi-api.git]
/
ruoyi-ui
/
node_modules
/
terser-webpack-plugin
/
dist
/
worker.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"use strict";
const minify = require('./minify');
function transform(options) {
// 'use strict' => this === undefined (Clean Scope)
// Safer for possible security issues, albeit not critical at all here
// eslint-disable-next-line no-new-func, no-param-reassign
options = new Function('exports', 'require', 'module', '__filename', '__dirname', `'use strict'\nreturn ${options}`)(exports, require, module, __filename, __dirname);
const result = minify(options);
if (result.error) {
throw result.error;
} else {
return result;
}
}
module.exports.transform = transform;