1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/@babel/plugin-syntax-jsx/lib/index.js

24 lines
569 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
2024-01-16 21:26:16 +08:00
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
2023-12-18 13:12:25 +08:00
api.assertVersion(7);
return {
name: "syntax-jsx",
manipulateOptions(opts, parserOpts) {
2024-01-16 21:26:16 +08:00
{
if (parserOpts.plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) {
return;
}
2023-12-18 13:12:25 +08:00
}
parserOpts.plugins.push("jsx");
}
};
});
2024-01-16 21:26:16 +08:00
//# sourceMappingURL=index.js.map