MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / make

Function make

packages/@contentlayer/core/src/getConfig/esbuild.ts:130–137  ·  view source on GitHub ↗
(buildOptions: esbuild.BuildOptions)

Source from the content-addressed store, hash-verified

128}
129
130export const make = (buildOptions: esbuild.BuildOptions): T.Effect<unknown, never, EsbuildWatcher> =>
131 T.gen(function* ($) {
132 const initialBuildResult = yield* $(Ref.makeRef<O.Option<esbuild.BuildResult>>(O.none))
133 const hub = yield* $(H.makeUnbounded<Ex.Exit<never, E.Either<EsbuildError, esbuild.BuildResult>>>())
134 const buildContext = yield* $(Ref.makeRef<O.Option<esbuild.BuildContext>>(O.none))
135
136 return new ConcreteEsbuildWatcher(initialBuildResult, buildContext, buildOptions, hub)
137 })
138
139export const subscribe = (
140 self: EsbuildWatcher,

Callers 1

makeAndSubscribeManagedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…