Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
632 bytes
|
Line | |
---|
1 | import "./lib/transform.js";
|
---|
2 | import "./lib/mozilla-ast.js";
|
---|
3 | import { minify } from "./lib/minify.js";
|
---|
4 |
|
---|
5 | export { minify } from "./lib/minify.js";
|
---|
6 | export { run_cli as _run_cli } from "./lib/cli.js";
|
---|
7 |
|
---|
8 | export 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 |
|
---|
21 | async 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.