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

import {
  JEs,
  PK,
  PR,
  Sme
} from "../../../../../chunk-O6UZH2O7.js";
import "../../../../../chunk-IAWYWZSL.js";
import "../../../../../chunk-DHZ7AZKP.js";

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