Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/crutchcorn/react-native-monorepo-example. An example of a Yarn Berry monorepo with workspace and Re
Something went wrong. Try again.
12345678910111213141516import { PluginOption } from "vite";
export function removeMobileCodePlugin(): PluginOption { return { name: "define web", async transform(code, _id, ssr) { if (!ssr && code.includes("process.env.IS_WEB")) { return code.replace(/process.env.IS_WEB/g, "true"); }
return undefined; }, enforce: "pre", };}