( provider: DriverAdapterSupportedProvider, format: ModuleFormat, buildType: QueryCompilerBuildType, )
| 64 | } |
| 65 | |
| 66 | function wasmBindgenRuntimeConfig( |
| 67 | provider: DriverAdapterSupportedProvider, |
| 68 | format: ModuleFormat, |
| 69 | buildType: QueryCompilerBuildType, |
| 70 | ): BuildOptions { |
| 71 | return { |
| 72 | format, |
| 73 | name: `query_compiler_${buildType}_bg.${provider}`, |
| 74 | entryPoints: [`@prisma/query-compiler-wasm/${provider}/query_compiler_${buildType}_bg.js`], |
| 75 | outfile: `runtime/query_compiler_${buildType}_bg.${provider}`, |
| 76 | outExtension: getOutExtension(format), |
| 77 | minify: shouldMinify, |
| 78 | plugins: [ |
| 79 | fillPlugin({ |
| 80 | defaultFillers: false, |
| 81 | fillerOverrides: { |
| 82 | Function: { |
| 83 | define: 'fn', |
| 84 | globals: functionPolyfillPath, |
| 85 | }, |
| 86 | }, |
| 87 | }), |
| 88 | ], |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | // we define the config for browser |
| 93 | function browserBuildConfigs(): BuildOptions[] { |
no test coverage detected