Documentation
    Preparing search index...

    The bundler class exposes the API to build an AdonisJS project.

    const bundler = new Bundler(new URL('./'), ts, { hooks: [] })
    const success = await bundler.bundle()
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    ui: {} = ...

    CLI UI instance for displaying colorful messages and progress information

    packageManager: SupportedPackageManager

    Package manager detected from the project environment

    cwd: URL

    The current working directory URL

    Bundler configuration options including hooks and meta files

    Methods

    • Bundles the application to be run in production

      Parameters

      • stopOnError: boolean = true

        Whether to stop the build process on TypeScript errors

      • Optionalclient: SupportedPackageManager

        Override the detected package manager

      Returns Promise<boolean>

      Promise that resolves to true if build succeeded, false otherwise

      const success = await bundler.bundle(true, 'npm')