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.
12345678910111213141516171819import { LibraryFormats } from "vite";
export const commonFormats = ["es", "cjs"] as LibraryFormats[];
export const baseOutDir = "./dist";
export const getFileName = (prefix: string, format: string) => { switch (format) { case "es": case "esm": case "module": return `${prefix}.mjs`; case "cjs": case "commonjs": default: return `${prefix}.cjs`; }};