(targetBuildType: typeof TARGET_BUILD_TYPE, format: ModuleFormat)
| 41 | |
| 42 | // we define the config for runtime |
| 43 | function nodeRuntimeBuildConfig(targetBuildType: typeof TARGET_BUILD_TYPE, format: ModuleFormat): BuildOptions { |
| 44 | return { |
| 45 | format, |
| 46 | name: targetBuildType, |
| 47 | entryPoints: ['src/runtime/index.ts'], |
| 48 | outfile: `runtime/${targetBuildType}`, |
| 49 | outExtension: getOutExtension(format), |
| 50 | bundle: true, |
| 51 | minify: shouldMinify, |
| 52 | sourcemap: 'linked', |
| 53 | emitTypes: ['library', 'client'].includes(targetBuildType), |
| 54 | external: ['@prisma/client-runtime-utils'], |
| 55 | define: { |
| 56 | NODE_CLIENT: 'true', |
| 57 | TARGET_BUILD_TYPE: JSON.stringify(targetBuildType), |
| 58 | // that fixes an issue with lz-string umd builds |
| 59 | 'define.amd': 'false', |
| 60 | }, |
| 61 | plugins: [noSideEffectsPlugin(/^(arg|lz-string)$/), nodeProtocolPlugin], |
| 62 | banner: format === 'esm' ? { js: NODE_ESM_BANNER } : undefined, |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | function wasmBindgenRuntimeConfig( |
| 67 | provider: DriverAdapterSupportedProvider, |
no test coverage detected