@shopify/cli-kit
    Preparing search index...

    Function moduleDirectory

    • Given a module's import.meta.url it returns the directory containing the module.

      Parameters

      • moduleURL: string | URL

        The value of import.meta.url in the context of the caller module.

      Returns string

      The path to the directory containing the caller module.