one
Version:
One is a new React Framework that makes Vite serve both native and web.
23 lines (22 loc) • 559 B
JavaScript
import { applyDependencyPatches } from "vxrn";
function fixDependenciesPlugin(options) {
const patches = [];
for (const key in options) {
const value = options[key];
if (value && typeof value === "object") {
patches.push({
module: key,
patchFiles: value
});
}
}
return {
name: "one-fix-dependencies",
enforce: "pre",
async configResolved(config) {
await applyDependencyPatches(patches, config);
}
};
}
export { fixDependenciesPlugin };
//# sourceMappingURL=fixDependenciesPlugin.mjs.map