Documentation
    Preparing search index...

    Common hooks executed by the dev-server, test runner and the bundler. These hooks are shared across all assembler operations and provide lifecycle management for initialization tasks.

    const commonHooks: CommonHooks = {
    init: [
    () => import('./hooks/create_barrel_files')
    ]
    }
    type CommonHooks = {
        init: LazyImport<
            (
                parent: DevServer | TestRunner | Bundler,
                indexGenerator: IndexGenerator,
            ) => AsyncOrSync<void>,
        >[];
    }
    Index

    Properties

    Properties

    init: LazyImport<
        (
            parent: DevServer | TestRunner | Bundler,
            indexGenerator: IndexGenerator,
        ) => AsyncOrSync<void>,
    >[]

    The hook is executed as the first step when assembler starts the dev-server, runs tests or creates a build. Use this hook to perform initialization tasks that are common across all operations.

    The parent instance (DevServer, TestRunner, or Bundler)