()
| 69 | * Loop through all slick files and build them as separate iife files using esbuild |
| 70 | */ |
| 71 | export 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 |
no test coverage detected