#!/usr/bin/env node
import { createRequire as createRequire_BATI_CLI } from 'module';
const require = createRequire_BATI_CLI(import.meta.url);

import {
  UG,
  g7,
  ixs,
  ohe
} from "../../../../../chunk-2ZRZBBQF.js";
import "../../../../../chunk-IAWYWZSL.js";
import "../../../../../chunk-IHX3I5SM.js";

// ../../boilerplates/sentry/dist/files/pages/$+client.ts.js
async function getViteConfig(props) {
  let mod;
  try {
    mod = await ixs(props);
  } catch {
    mod = ohe("");
  }
  if (!props.meta.BATI.has("vue")) {
    mod.imports.$prepend({
      from: "../sentry.browser.config",
      imported: "sentryBrowserConfig"
    });
    const e = UG.functionCall("sentryBrowserConfig");
    const c = g7(e).code;
    mod.$ast.body.splice(mod.$ast.body.length - 1, 0, c);
  }
  return mod.generate().code;
}
export {
  getViteConfig as default
};
