Function
sendBuildEvent
(framework: string, config: any, isDev: boolean)
Source from the content-addressed store, hash-verified
| 51 | const alreadySentBuildEvent = { value: false }; |
| 52 | |
| 53 | function 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 | |
| 63 | const unplugin = createUnplugin<Partial<typeof defaultParams> | undefined>( |
| 64 | (_params, _meta) => { |
Tested by
no test coverage detected