MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / get_common_esbuild_options

Function get_common_esbuild_options

build_shared.ts:54–68  ·  view source on GitHub ↗
(is_dev: boolean, dist_dirname: string)

Source from the content-addressed store, hash-verified

52}
53
54export function get_common_esbuild_options(is_dev: boolean, dist_dirname: string): esb.BuildOptions {
55 return {
56 platform: 'browser',
57 format: 'esm',
58 target: 'esnext',
59 sourcemap: is_dev,
60 outdir: dist_dirname,
61 bundle: true,
62 splitting: true,
63 treeShaking: !is_dev,
64 logLevel: is_dev ? 'info' : 'warning',
65 color: true,
66 dropLabels: [is_dev ? 'PROD' : 'DEV'],
67 }
68}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…