normalize-options.js 614 B

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = normalizeOptions;
  6. var _helperValidatorOption = require("@babel/helper-validator-option");
  7. const v = new _helperValidatorOption.OptionValidator("@babel/preset-flow");
  8. function normalizeOptions(options = {}) {
  9. let {
  10. all,
  11. ignoreExtensions,
  12. experimental_useHermesParser
  13. } = options;
  14. const {
  15. allowDeclareFields
  16. } = options;
  17. {
  18. return {
  19. all,
  20. allowDeclareFields,
  21. ignoreExtensions,
  22. experimental_useHermesParser
  23. };
  24. }
  25. }
  26. //# sourceMappingURL=normalize-options.js.map