Activity Forums Salesforce® Discussions What is aura definition bundle in Salesforce?

  • Manpreet

    Member
    May 1, 2018 at 10:58 am

    Hi shubham,

    It represents a Lightning definition bundle, it contains a Lightning definition and all its related resources. It could define a component, application, event, interface, or a tokens collection.

    An AuraDefinitionBundle component is a collection of component definition files, each representing a different resource such as markup code, event documentations, applications and interfaces.

    Lightning bundles must be under a top-level folder that’s named aura. Each bundle must have its own subfolder under the aura folder.

    Thanks.

  • Aman

    Member
    May 1, 2018 at 11:06 am

    Hi Shubham,

    Represents a Lightning definition bundle. A bundle contains a Lightning definition and all its related resources. The definition can be a component, application, event, interface, or a tokens collection.
    File Suffix and Directory Location
    A Lightning bundle is a folder that contains definition files. Unlike other metadata components, an AuraDefinitionBundle component isn’t represented by a single component file but instead by a collection of component definition files. Each definition file represents a resource in a bundle, such as markup, applications, code files (including controllers and helpers), events, documentation, and interfaces. For example, this directory structure shows the hierarchy of the folders and files for two bundles: bundle1 and bundle2.

    aura
    bundle1
    bundle1.cmp
    bundle1Controller.js
    bundle2
    bundle2.app
    bundle2.cmp
    bundle2Controller.js
    bundle2.auradoc

    Thanks

  • Parul

    Member
    September 19, 2018 at 4:45 am

    Hi

    Lightning definition represents bundle and all its related resources. The definition can be a component, application, event, interface, or a tokens collection.

    Unlike other metadata components, an AuraDefinitionBundle component isn’t represented by a single component file but instead by a collection of component definition files. Each definition file represents a resource in a bundle, such as markup, applications, code files (including controllers and helpers), events, documentation, and interfaces.This object is available in API version 32.0 and later.

    Thanks

  • Pooja

    Member
    February 17, 2020 at 2:49 pm

    A Lightning bundle is a folder that contains definition files. Unlike other metadata components, Unlike other metadata components, an AuraDefinitionBundle component isn’t represented by a single component file but instead by a collection of component definition files.

Log In to reply.

Popular Salesforce Blogs