source: trip-planner-front/node_modules/terser/main.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 632 bytes
Line 
1import "./lib/transform.js";
2import "./lib/mozilla-ast.js";
3import { minify } from "./lib/minify.js";
4
5export { minify } from "./lib/minify.js";
6export { run_cli as _run_cli } from "./lib/cli.js";
7
8export async function _default_options() {
9 const defs = {};
10
11 Object.keys(infer_options({ 0: 0 })).forEach((component) => {
12 const options = infer_options({
13 [component]: {0: 0}
14 });
15
16 if (options) defs[component] = options;
17 });
18 return defs;
19}
20
21async function infer_options(options) {
22 try {
23 await minify("", options);
24 } catch (error) {
25 return error.defs;
26 }
27}
Note: See TracBrowser for help on using the repository browser.