MCPcopy Create free account
hub / github.com/beefyfinance/beefy-v2 / getCheckerScript

Function getCheckerScript

tools/bundle/version-plugin.ts:46–62  ·  view source on GitHub ↗
(version: BuildVersion)

Source from the content-addressed store, hash-verified

44 JSON.stringify(JSON.stringify(version))
45 );
46 const minified = await transformWithEsbuild(codeWithVersion, filePath, {
47 minify: true,
48 minifyWhitespace: true,
49 minifyIdentifiers: true,
50 minifySyntax: true,
51 loader: 'ts',
52 });
53
54 return `<script>${minified.code}</script>`;
55 }
56
57 let headers: HeadersPluginApi;
58
59 return {
60 name: 'version-plugin',
61 enforce: 'post',
62 apply: 'build',
63 configResolved(config) {
64 headers = getHeadersApi(config);
65 },

Callers 1

generateBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected