You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

node.js 446B

12345678910111213141516171819
  1. import { minify } from "../lib/minify";
  2. export function default_options() {
  3. const defs = {};
  4. Object.keys(infer_options({ 0: 0 })).forEach((component) => {
  5. const options = infer_options({
  6. [component]: {0: 0}
  7. });
  8. if (options) defs[component] = options;
  9. });
  10. return defs;
  11. }
  12. function infer_options(options) {
  13. var result = minify("", options);
  14. return result.error && result.error.defs;
  15. }