MCPcopy Create free account
hub / github.com/formkit/formkit / bundle

Function bundle

scripts/build.mjs:261–270  ·  view source on GitHub ↗

* Create a new bundle of a certain format for a certain package. * @param p package name * @param format the format to create (cjs, esm, umd, etc...)

(p, subPackage, showLogs = false)

Source from the content-addressed store, hash-verified

259 * @param format the format to create (cjs, esm, umd, etc...)
260 */
261async function bundle(p, subPackage, showLogs = false) {
262 if (subPackage && p === 'themes') {
263 progress.step = `Bundling theme ${subPackage}`
264 } else if (subPackage) {
265 progress.step = `Bundling plugin ${subPackage}`
266 } else {
267 progress.step = `Bundling ${p}${subPackage ? ' (' + subPackage + ')' : ''}`
268 }
269 await createBundle(p, subPackage, showLogs)
270}
271
272async function buildNuxtModule() {
273 progress.step = `Bundling Nuxt module`

Callers 2

buildPackageFunction · 0.85
themesBuildExtrasFunction · 0.85

Calls 1

createBundleFunction · 0.90

Tested by

no test coverage detected