MCPcopy
hub / github.com/lingodotdev/lingo.dev / sendBuildEvent

Function sendBuildEvent

packages/compiler/src/index.ts:53–61  ·  view source on GitHub ↗
(framework: string, config: any, isDev: boolean)

Source from the content-addressed store, hash-verified

51const alreadySentBuildEvent = { value: false };
52
53function sendBuildEvent(framework: string, config: any, isDev: boolean) {
54 if (alreadySentBuildEvent.value) return;
55 alreadySentBuildEvent.value = true;
56 trackEvent("compiler.build.start", {
57 framework,
58 configuration: config,
59 isDevMode: isDev,
60 });
61}
62
63const unplugin = createUnplugin<Partial<typeof defaultParams> | undefined>(
64 (_params, _meta) => {

Callers 1

index.tsFile · 0.85

Calls 1

trackEventFunction · 0.50

Tested by

no test coverage detected