aswi2020vldc-gitlab/templetes/node_modules/terser/tools/node.js @ 143404cb
1 |
import { minify } from "../lib/minify"; |
---|---|
2 |
|
3 |
export function default_options() { |
4 |
const defs = {}; |
5 |
|
6 |
Object.keys(infer_options({ 0: 0 })).forEach((component) => { |
7 |
const options = infer_options({ |
8 |
[component]: {0: 0} |
9 |
});
|
10 |
|
11 |
if (options) defs[component] = options; |
12 |
});
|
13 |
return defs; |
14 |
}
|
15 |
|
16 |
function infer_options(options) { |
17 |
var result = minify("", options); |
18 |
return result.error && result.error.defs; |
19 |
}
|