(fnc: string, browser?: boolean)
| 106 | ` |
| 107 | |
| 108 | export const notSupportOnBrowser = (fnc: string, browser?: boolean) => { |
| 109 | if (browser) { |
| 110 | return `() => { |
| 111 | const runtimeName = getRuntime().prettyName; |
| 112 | throw new Error(\`${fnc} is unable to run in this browser environment, or has been bundled for the browser (running in \${runtimeName}). |
| 113 | In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report\`, |
| 114 | )}` |
| 115 | } |
| 116 | return fnc |
| 117 | } |
| 118 | |
| 119 | export const commonCodeTS = ({ |
| 120 | runtimeBase, |