INNER CODE UNIT · TypeScript

build

nuxt/vercel-builder · src/build.ts:31

export async function build (opts: BuildOptions & { config: NuxtBuilderConfig }): Promise<BuilderOutput> {
  const { files, entrypoint, workPath, config = {}, meta = {} } = opts
  // ---------------- Debugging context --------------
  consola.log('Running with @nuxt/vercel-builder version', require('../package.json').version)

  // ----------------- Prepare build -----------------
  startStep('Prepare build')

  // Validate entrypoint
  validateEntrypoint(entrypoint)

  // Get Nuxt directory
  const entrypointDirname = path.dirname(entrypoint)
  // Get Nuxt path
  const entrypointPath = path.join(workPath, entrypointDirname)
  // Get folder where we'll store node_modules
  const modulesPath = path.join(entrypointPath, 'node_modules')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…