Files
website/node_modules/sucrase/dist/esm/util/getJSXPragmaInfo.js
T
Christian ManivongandClaude Sonnet 4.6 46929e2ef5 docs(design): remove SVG, use PNG logo only
SVG icon is no longer in use. public/logo.png (1024x1024 RGBA) is
the single logo asset. DESIGN.md updated accordingly: SVG snippet
removed, wordmark pattern and <head> references updated to PNG.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 10:16:43 +02:00

23 lines
494 B
JavaScript

export default function getJSXPragmaInfo(options) {
const [base, suffix] = splitPragma(options.jsxPragma || "React.createElement");
const [fragmentBase, fragmentSuffix] = splitPragma(options.jsxFragmentPragma || "React.Fragment");
return {base, suffix, fragmentBase, fragmentSuffix};
}
function splitPragma(pragma) {
let dotIndex = pragma.indexOf(".");
if (dotIndex === -1) {
dotIndex = pragma.length;
}
return [pragma.slice(0, dotIndex), pragma.slice(dotIndex)];
}