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.

23 lines
569 B

3 months ago
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _helperPluginUtils = require("@babel/helper-plugin-utils");
  7. var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
  8. api.assertVersion(7);
  9. return {
  10. name: "syntax-jsx",
  11. manipulateOptions(opts, parserOpts) {
  12. {
  13. if (parserOpts.plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) {
  14. return;
  15. }
  16. }
  17. parserOpts.plugins.push("jsx");
  18. }
  19. };
  20. });
  21. //# sourceMappingURL=index.js.map