%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/test/node_modules/sucrase/dist/esm/util/
Upload File :
Create Path :
Current File : /www/loslex/test/node_modules/sucrase/dist/esm/util/getJSXPragmaInfo.js









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)];
}

Zerion Mini Shell 1.0