MCPcopy Create free account
hub / github.com/6pac/SlickGrid / executeCjsEsmBuilds

Function executeCjsEsmBuilds

scripts/builds.mjs:71–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 * Loop through all slick files and build them as separate iife files using esbuild
70 */
71export async function executeCjsEsmBuilds() {
72 // build all other formats to a single bundled file
73 for (const format of BUILD_FORMATS) {
74 const startTime = new Date().getTime();
75 await bundleByFormat(format);
76 const endTime = new Date().getTime();
77 console.log(`[${styleText('yellow', 'esbuild ⚡')}] Bundled to "${format === 'mjs' ? 'esm (mjs)' : format}" format in ${endTime - startTime}ms`);
78 }
79}
80
81/**
82 * Bundle with esbuild to either CJS or ESM format

Callers 2

executeCommandCallbackFunction · 0.90
executeFullBuildFunction · 0.85

Calls 1

bundleByFormatFunction · 0.85

Tested by

no test coverage detected