UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

28 lines (26 loc) 765 B
import { applyDependencyPatches } from "vxrn"; function _type_of(obj) { "@swc/helpers - typeof"; return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; } function fixDependenciesPlugin(options) { var patches = []; for (var key in options) { var value = options[key]; if (value && (typeof value === "undefined" ? "undefined" : _type_of(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.native.js.map