MCPcopy
hub / github.com/prisma/prisma / browserBuildConfigs

Function browserBuildConfigs

packages/client/helpers/build.ts:93–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92// we define the config for browser
93function browserBuildConfigs(): BuildOptions[] {
94 return MODULE_FORMATS.map((format) => ({
95 format,
96 name: 'browser',
97 entryPoints: ['src/runtime/index-browser.ts'],
98 outfile: 'runtime/index-browser',
99 outExtension: getOutExtension(format),
100 target: ['chrome58', 'firefox57', 'safari11', 'edge16'],
101 bundle: true,
102 minify: shouldMinify,
103 sourcemap: 'linked',
104 external: ['@prisma/client-runtime-utils'],
105 }))
106}
107
108/**
109 * Overrides meant for edge and wasm builds

Callers 1

build.tsFile · 0.85

Calls 1

getOutExtensionFunction · 0.85

Tested by

no test coverage detected