MCPcopy
hub / github.com/prisma/prisma / wasmBindgenRuntimeConfig

Function wasmBindgenRuntimeConfig

packages/client/helpers/build.ts:66–90  ·  view source on GitHub ↗
(
  provider: DriverAdapterSupportedProvider,
  format: ModuleFormat,
  buildType: QueryCompilerBuildType,
)

Source from the content-addressed store, hash-verified

64}
65
66function 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
93function browserBuildConfigs(): BuildOptions[] {

Callers 1

Calls 2

fillPluginFunction · 0.90
getOutExtensionFunction · 0.85

Tested by

no test coverage detected