UNPKG

446 BJavaScriptView Raw
1import { minify } from "../lib/minify";
2
3export 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
16function infer_options(options) {
17 var result = minify("", options);
18 return result.error && result.error.defs;
19}