MCPcopy Create free account
hub / github.com/Cphayim/ombro / createBuild

Function createBuild

scripts/vite.base.config.ts:13–28  ·  view source on GitHub ↗
({ root, external }: CreateOptions)

Source from the content-addressed store, hash-verified

11}
12
13export const createBuild = ({ root, external }: CreateOptions) => {
14 const build: BuildOptions = {
15 outDir: resolve(root, 'dist'),
16 emptyOutDir: true,
17 sourcemap: true,
18 lib: {
19 entry: resolve(root, 'src/index.ts'),
20 formats: ['es', 'cjs'],
21 fileName: (format) => `index${format === 'es' ? '.js' : '.cjs'}`,
22 },
23 rollupOptions: {
24 external: [EXTERNAL_REPO_PKG, ...(external ?? [])],
25 },
26 }
27 return build
28}

Callers 4

vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90
vite.config.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected