{"version":3,"file":"fixDependenciesPlugin.js","names":[],"sources":["esm/vite/plugins/fixDependenciesPlugin.js"],"sourcesContent":["import { applyDependencyPatches } from \"vxrn\";\nfunction fixDependenciesPlugin(options) {\n  const patches = [];\n  for (const key in options) {\n    const value = options[key];\n    if (value && typeof value === \"object\") {\n      patches.push({\n        module: key,\n        patchFiles: value\n      });\n    }\n  }\n  return {\n    name: \"one-fix-dependencies\",\n    enforce: \"pre\",\n    async configResolved(config) {\n      await applyDependencyPatches(patches, config);\n    }\n  };\n}\nexport {\n  fixDependenciesPlugin\n};\n//# sourceMappingURL=fixDependenciesPlugin.js.map\n"],"mappings":";;;AACA,SAAS,sBAAsB,SAAS;CACtC,MAAM,UAAU,CAAC;CACjB,KAAK,MAAM,OAAO,SAAS;EACzB,MAAM,QAAQ,QAAQ;EACtB,IAAI,SAAS,OAAO,UAAU,UAAU;GACtC,QAAQ,KAAK;IACX,QAAQ;IACR,YAAY;GACd,CAAC;EACH;CACF;CACA,OAAO;EACL,MAAM;EACN,SAAS;EACT,MAAM,eAAe,QAAQ;GAC3B,MAAM,uBAAuB,SAAS,MAAM;EAC9C;CACF;AACF"}